From 004c48fcb87801baa8415fa2a95531ea22323a43 Mon Sep 17 00:00:00 2001 From: Alireza Ghasemi Date: Sat, 25 May 2024 13:58:01 +0330 Subject: [PATCH] Fixup typo --- 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.