1
0
mirror of https://github.com/go-micro/go-micro.git synced 2024-12-24 10:07:04 +02:00

Fix web service auth name

This commit is contained in:
Ben Toogood 2020-05-26 17:43:45 +01:00
parent c3b404bab0
commit d6c1fbf841

View File

@ -444,7 +444,7 @@ func (s *service) Init(opts ...Option) error {
func (s *service) Run() error { func (s *service) Run() error {
// generate an auth account // generate an auth account
srvID := s.opts.Service.Server().Options().Id srvID := s.opts.Service.Server().Options().Id
srvName := s.opts.Service.Name() srvName := s.Options().Name
if err := authutil.Generate(srvID, srvName, s.opts.Service.Options().Auth); err != nil { if err := authutil.Generate(srvID, srvName, s.opts.Service.Options().Auth); err != nil {
return err return err
} }