diff --git a/jetstream/jetstream.go b/jetstream/jetstream.go index 36a44c810..3b94146dc 100644 --- a/jetstream/jetstream.go +++ b/jetstream/jetstream.go @@ -122,7 +122,8 @@ type ( // to operate on a stream. StreamManager interface { // CreateStream creates a new stream with given config and returns an - // interface to operate on it. If stream with given name already exists, + // interface to operate on it. If stream with given name already exists + // and its configuration differs from the provided one, // ErrStreamNameAlreadyInUse is returned. CreateStream(ctx context.Context, cfg StreamConfig) (Stream, error)