mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-16 19:14:41 -07:00
@@ -40,7 +40,7 @@ var (
|
||||
|
||||
const (
|
||||
// VERSION is the current version for the server.
|
||||
VERSION = "2.2.0-beta.11"
|
||||
VERSION = "2.2.0-beta.12"
|
||||
|
||||
// PROTO is the currently supported protocol.
|
||||
// 0 was the original
|
||||
|
||||
@@ -958,16 +958,6 @@ func (s *Server) setSystemAccount(acc *Account) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (s *Server) systemAccount() *Account {
|
||||
var sacc *Account
|
||||
s.mu.Lock()
|
||||
if s.sys != nil {
|
||||
sacc = s.sys.account
|
||||
}
|
||||
s.mu.Unlock()
|
||||
return sacc
|
||||
}
|
||||
|
||||
// Creates an internal system client.
|
||||
func (s *Server) createInternalSystemClient() *client {
|
||||
return s.createInternalClient(SYSTEM)
|
||||
|
||||
Reference in New Issue
Block a user