mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-02 03:38:42 -07:00
Merge pull request #963 from nats-io/start_go_routine_lead_node
Fixed invocations of startGoRoutine (continued)
This commit is contained in:
@@ -583,10 +583,10 @@ func (s *Server) createLeafNode(conn net.Conn, remote *leafNodeCfg) *client {
|
||||
}
|
||||
|
||||
// Spin up the read loop.
|
||||
s.startGoRoutine(c.readLoop)
|
||||
s.startGoRoutine(func() { c.readLoop() })
|
||||
|
||||
// Spin up the write loop.
|
||||
s.startGoRoutine(c.writeLoop)
|
||||
s.startGoRoutine(func() { c.writeLoop() })
|
||||
|
||||
// Set the Ping timer
|
||||
c.setPingTimer()
|
||||
|
||||
Reference in New Issue
Block a user