update for latest micro
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
@@ -158,8 +158,9 @@ func RegisterRegisterServer(s server.Server, sh RegisterServer, opts ...server.H
|
||||
register
|
||||
}
|
||||
h := ®isterServer{sh}
|
||||
var nopts []server.HandlerOption
|
||||
for _, endpoint := range NewRegisterEndpoints() {
|
||||
opts = append(opts, api.WithEndpoint(endpoint))
|
||||
nopts = append(nopts, api.WithEndpoint(endpoint))
|
||||
}
|
||||
return s.Handle(s.NewHandler(&Register{h}, opts...))
|
||||
return s.Handle(s.NewHandler(&Register{h}, append(nopts, opts...)...))
|
||||
}
|
||||
|
Reference in New Issue
Block a user