mirror of
https://github.com/status-im/consul.git
synced 2025-02-03 09:24:25 +00:00
consul: Fixing potential issue with blocking queries for {Session,ACL}.Get
This commit is contained in:
parent
f2e1594814
commit
0b969c4e2b
@ -139,6 +139,8 @@ func (a *ACL) Get(args *structs.ACLSpecificRequest,
|
||||
reply.Index = index
|
||||
if acl != nil {
|
||||
reply.ACLs = structs.ACLs{acl}
|
||||
} else {
|
||||
reply.ACLs = nil
|
||||
}
|
||||
return err
|
||||
})
|
||||
|
@ -117,6 +117,8 @@ func (s *Session) Get(args *structs.SessionSpecificRequest,
|
||||
reply.Index = index
|
||||
if session != nil {
|
||||
reply.Sessions = structs.Sessions{session}
|
||||
} else {
|
||||
reply.Sessions = nil
|
||||
}
|
||||
return err
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user