mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-14 18:20:42 -07:00
Merge pull request #3337 from nats-io/allow-direct-default
On stream create, change AllowDirect set test on MaxMsgsPer 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