diff --git a/main.go b/main.go index 509bfa7..f0a3ce2 100644 --- a/main.go +++ b/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(),