Skip to content

Commit

Permalink
[IMPROVED] Fix typo inconnect (#1638)
Browse files Browse the repository at this point in the history
  • Loading branch information
agcom authored and piotrpio committed Dec 13, 2024
1 parent 1f80b11 commit cd3b51a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nats.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit cd3b51a

Please sign in to comment.