From 901a70ee96a05445a7a7722ec2f936a9e272b3e2 Mon Sep 17 00:00:00 2001 From: Ivan Kozlovic Date: Wed, 5 Oct 2022 13:15:16 -0600 Subject: [PATCH] [FIXED] Discard Policy was incorrectly displayed. For instance, a discard "new" policy was displayed as: ``` Discard Policy: NewNew ``` Signed-off-by: Ivan Kozlovic --- cli/stream_command.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/stream_command.go b/cli/stream_command.go index 8f770e0e..8ebf448b 100644 --- a/cli/stream_command.go +++ b/cli/stream_command.go @@ -1611,7 +1611,7 @@ func (c *streamCmd) showStreamConfig(cfg api.StreamConfig) { if cfg.DiscardNewPer { dnp = "New Per Subject" } - fmt.Printf(" Discard Policy: %s%s\n", cfg.Discard.String(), dnp) + fmt.Printf(" Discard Policy: %s\n", dnp) fmt.Printf(" Duplicate Window: %v\n", cfg.Duplicates) if cfg.AllowDirect { fmt.Printf(" Allows Direct Get: %v\n", cfg.AllowDirect)