mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-02 11:48:43 -07:00
Merge branch 'main' into dev
This commit is contained in:
@@ -888,7 +888,13 @@ func (s *Server) createLeafNode(conn net.Conn, rURL *url.URL, remote *leafNodeCf
|
||||
}
|
||||
now := time.Now().UTC()
|
||||
|
||||
c := &client{srv: s, nc: conn, kind: LEAF, opts: defaultOpts, mpay: maxPay, msubs: maxSubs, start: now, last: now}
|
||||
var clientOpts = ClientOpts{
|
||||
Name: opts.ServerName,
|
||||
Verbose: defaultOpts.Verbose,
|
||||
Pedantic: defaultOpts.Pedantic,
|
||||
Echo: defaultOpts.Echo,
|
||||
}
|
||||
c := &client{srv: s, nc: conn, kind: LEAF, opts: clientOpts, mpay: maxPay, msubs: maxSubs, start: now, last: now}
|
||||
// Do not update the smap here, we need to do it in initLeafNodeSmapAndSendSubs
|
||||
c.leaf = &leaf{}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user