mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-02 03:38:42 -07:00
Merge pull request #2003 from nats-io/updates-js-reload
Fix for JS reload and exports
This commit is contained in:
@@ -828,6 +828,9 @@ func (s *Server) addSystemAccountExports(sacc *Account) {
|
||||
if err := sacc.AddServiceExport(accSubsSubj, nil); err != nil {
|
||||
s.Errorf("Error adding system service export for %q: %v", accSubsSubj, err)
|
||||
}
|
||||
if s.JetStreamEnabled() {
|
||||
s.checkJetStreamExports()
|
||||
}
|
||||
}
|
||||
|
||||
// accountClaimUpdate will receive claim updates for accounts.
|
||||
|
||||
@@ -333,7 +333,6 @@ func (s *Server) DisableJetStream() error {
|
||||
}
|
||||
// Once here we can forward our proposal to remove ourselves.
|
||||
meta.ProposeRemovePeer(meta.ID())
|
||||
time.Sleep(250 * time.Millisecond)
|
||||
meta.Delete()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2017-2020 The NATS Authors
|
||||
// Copyright 2017-2021 The NATS Authors
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
|
||||
Reference in New Issue
Block a user