AlexStocks / getty

a netty like asynchronous network I/O library based on tcp/udp/websocket; a bidirectional RPC framework based on JSON/Protobuf; a microservice framework based on zookeeper/etcd
Apache License 2.0
886 stars 184 forks source link

Fix: duplicate gettyRPCClient #27

Closed AlexStocks closed 4 years ago

AlexStocks commented 4 years ago

The function rpcClientArray.Put should check gettyRPCClient exist in rpcClientArray.array or not before putting is into rpcClientArray.array.

func (a *rpcClientArray) Put(clt *gettyRPCClient)