1
0
mirror of https://github.com/go-micro/go-micro.git synced 2025-03-29 20:39:48 +02:00

Check for error before loading rules

This commit is contained in:
Ben Toogood 2020-05-22 14:03:12 +01:00
parent 877fe5fb0a
commit c800070477

View File

@ -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
}