broker: add profiling
This commit is contained in:
@@ -23,12 +23,12 @@ func NewMessagingClient(bootstrapBrokers []string) (*MessagingClient, error) {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
util.OnInterrupt(func() {
|
||||
grpcConnection.Close()
|
||||
})
|
||||
|
||||
return &MessagingClient{
|
||||
bootstrapBrokers: bootstrapBrokers,
|
||||
grpcConnection: grpcConnection,
|
||||
}, nil
|
||||
}
|
||||
|
||||
func (mc *MessagingClient) Shutdown() {
|
||||
mc.grpcConnection.Close()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user