1
0
mirror of https://github.com/go-micro/go-micro.git synced 2024-12-24 10:07:04 +02:00
go-micro/codec/protorpc
Vasiliy Tolstov 58598d0fe0
fixes for safe conversation and avoid panics (#1213)
* fixes for safe convertation

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>

* fix client publish panic

If broker connect returns error we dont check it status and use
it later to publish message, mostly this is unexpected because
broker connection failed and we cant use it.
Also proposed solution have benefit - we flag connection status
only when we have succeseful broker connection

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>

* api/handler/broker: fix possible broker publish panic

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-02-18 23:05:38 +00:00
..
envelope.pb.go rename to protorpc and jsonrpc 2015-11-28 18:54:38 +00:00
envelope.proto rename to protorpc and jsonrpc 2015-11-28 18:54:38 +00:00
netstring.go rename to protorpc and jsonrpc 2015-11-28 18:54:38 +00:00
protorpc.go fixes for safe conversation and avoid panics (#1213) 2020-02-18 23:05:38 +00:00