Fixed updates to the fulgens server
This commit is contained in:
parent
cdda34490f
commit
b9bc80b8a4
1 changed files with 4 additions and 4 deletions
8
main.go
8
main.go
|
@ -39,7 +39,7 @@ var ServiceInformation = library.Service{
|
|||
func logFunc(message string, messageType uint64, information library.ServiceInitializationInformation) {
|
||||
// Log the message to the logger service
|
||||
information.Outbox <- library.InterServiceMessage{
|
||||
ServiceID: information.ServiceID,
|
||||
ServiceID: ServiceInformation.ServiceID,
|
||||
ForServiceID: uuid.MustParse("00000000-0000-0000-0000-000000000002"), // Logger service
|
||||
MessageType: messageType,
|
||||
SentAt: time.Now(),
|
||||
|
@ -124,7 +124,7 @@ func Main(information library.ServiceInitializationInformation) {
|
|||
// Initiate a connection to the database
|
||||
// Call service ID 1 to get the database connection information
|
||||
information.Outbox <- library.InterServiceMessage{
|
||||
ServiceID: information.ServiceID,
|
||||
ServiceID: ServiceInformation.ServiceID,
|
||||
ForServiceID: uuid.MustParse("00000000-0000-0000-0000-000000000001"), // Service initialization service
|
||||
MessageType: 1, // Request connection information
|
||||
SentAt: time.Now(),
|
||||
|
@ -150,7 +150,7 @@ func Main(information library.ServiceInitializationInformation) {
|
|||
|
||||
// Ask the authentication service for the public key
|
||||
information.Outbox <- library.InterServiceMessage{
|
||||
ServiceID: information.ServiceID,
|
||||
ServiceID: ServiceInformation.ServiceID,
|
||||
ForServiceID: uuid.MustParse("00000000-0000-0000-0000-000000000004"), // Authentication service
|
||||
MessageType: 2, // Request public key
|
||||
SentAt: time.Now(),
|
||||
|
@ -171,7 +171,7 @@ func Main(information library.ServiceInitializationInformation) {
|
|||
|
||||
// Ask the authentication service for its host name
|
||||
information.Outbox <- library.InterServiceMessage{
|
||||
ServiceID: information.ServiceID,
|
||||
ServiceID: ServiceInformation.ServiceID,
|
||||
ForServiceID: uuid.MustParse("00000000-0000-0000-0000-000000000004"), // Authentication service
|
||||
MessageType: 0, // Request host name
|
||||
SentAt: time.Now(),
|
||||
|
|
Reference in a new issue