From b04a883e6048b7b2812b3ddbc5337d8794c59230 Mon Sep 17 00:00:00 2001 From: Alireza Ghasemi Date: Tue, 28 May 2024 18:55:24 +0330 Subject: [PATCH] [IMPROVED] Fix typo inconnect (#1638) --- nats.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nats.go b/nats.go index befff7811..9f97567ba 100644 --- a/nats.go +++ b/nats.go @@ -5483,7 +5483,7 @@ func (nc *Conn) drainConnection() { // Drain will put a connection into a drain state. All subscriptions will // immediately be put into a drain state. Upon completion, the publishers // will be drained and can not publish any additional messages. Upon draining -// of the publishers, the connection will be closed. Use the ClosedCB() +// of the publishers, the connection will be closed. Use the ClosedCB // option to know when the connection has moved from draining to closed. // // See note in Subscription.Drain for JetStream subscriptions.