change set test to > 0

This commit is contained in:
Todd Beets
2022-08-04 17:37:40 -07:00
parent e03d84f704
commit 9f8b4461f3

View File

@@ -1202,7 +1202,7 @@ func (s *Server) checkStreamCfg(config *StreamConfig, acc *Account) (StreamConfi
}
// Here we will auto set direct gets if MaxMsgsPerSubject is set.
if cfg.MaxMsgsPer != 0 {
if cfg.MaxMsgsPer > 0 {
cfg.AllowDirect = true
}