mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-02 03:38:42 -07:00
change set test to > 0
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user