|
@ -23,10 +23,6 @@ func NewMessagingClient(bootstrapBrokers []string) (*MessagingClient, error) { |
|
|
return nil, err |
|
|
return nil, err |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
util.OnInterrupt(func() { |
|
|
|
|
|
grpcConnection.Close() |
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
return &MessagingClient{ |
|
|
return &MessagingClient{ |
|
|
bootstrapBrokers: bootstrapBrokers, |
|
|
bootstrapBrokers: bootstrapBrokers, |
|
|
grpcConnection: grpcConnection, |
|
|
grpcConnection: grpcConnection, |
|
|