various fixes for broker and messaging in server (#1187)
* provide broker disconnect messages in server Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org> * broker/eats: another fix Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
parent
e56b65ecce
commit
816bfec4a0
6
grpc.go
6
grpc.go
@ -805,10 +805,7 @@ func (g *grpcServer) Start() error {
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
baddr := config.Broker.Address()
|
log.Logf("Broker [%s] Connected to %s", config.Broker.String(), config.Broker.Address())
|
||||||
bname := config.Broker.String()
|
|
||||||
|
|
||||||
log.Logf("Broker [%s] Connected to %s", bname, baddr)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// announce self to the world
|
// announce self to the world
|
||||||
@ -876,6 +873,7 @@ func (g *grpcServer) Start() error {
|
|||||||
// close transport
|
// close transport
|
||||||
ch <- nil
|
ch <- nil
|
||||||
|
|
||||||
|
log.Logf("Broker [%s] Disconnected from %s", config.Broker.String(), config.Broker.Address())
|
||||||
// disconnect broker
|
// disconnect broker
|
||||||
config.Broker.Disconnect()
|
config.Broker.Disconnect()
|
||||||
}()
|
}()
|
||||||
|
Loading…
Reference in New Issue
Block a user