mirror of
https://github.com/go-micro/go-micro.git
synced 2025-06-18 22:17:44 +02:00
Check for error before loading rules
This commit is contained in:
@ -99,7 +99,10 @@ func (s *svc) Grant(rule *auth.Rule) error {
|
||||
},
|
||||
})
|
||||
|
||||
go s.loadRules(s.options.Namespace)
|
||||
if err == nil {
|
||||
go s.loadRules(s.options.Namespace)
|
||||
}
|
||||
|
||||
return err
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user