Skip to content

Commit 69922ce

Browse files
authored
[IMPROVED] Fix typo inconnect (#1638)
1 parent c93d277 commit 69922ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nats.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5483,7 +5483,7 @@ func (nc *Conn) drainConnection() {
54835483
// Drain will put a connection into a drain state. All subscriptions will
54845484
// immediately be put into a drain state. Upon completion, the publishers
54855485
// will be drained and can not publish any additional messages. Upon draining
5486-
// of the publishers, the connection will be closed. Use the ClosedCB()
5486+
// of the publishers, the connection will be closed. Use the ClosedCB
54875487
// option to know when the connection has moved from draining to closed.
54885488
//
54895489
// See note in Subscription.Drain for JetStream subscriptions.

0 commit comments

Comments
 (0)