Parallelize RPC server message processing
This commit is contained in:
parent
60997377e6
commit
c22a21febb
|
|
@ -407,7 +407,7 @@ func (rpc *AmqpRPCServer) Start(c cmd.Config) error {
|
|||
select {
|
||||
case msg, ok := <-msgs:
|
||||
if ok {
|
||||
rpc.processMessage(msg)
|
||||
go rpc.processMessage(msg)
|
||||
} else {
|
||||
// chan has been closed by rpc.channel.Cancel
|
||||
rpc.log.Info(" [!] Finished processing messages")
|
||||
|
|
|
|||
Loading…
Reference in New Issue