From 60754bdc3bbcd6aa999eacb8e9201d345927af02 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-No=C3=ABl=20Moyne?= Date: Wed, 2 Oct 2024 23:48:05 -0700 Subject: [PATCH] [IMPROVED] Correct the description of CreateStream to indicate it is idempotent (#1723) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jean-Noël Moyne --- jetstream/jetstream.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)