update metadata
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
8
http.go
8
http.go
@@ -78,13 +78,7 @@ func (h *httpServer) Handle(handler server.Handler) error {
|
||||
}
|
||||
|
||||
func (h *httpServer) NewHandler(handler interface{}, opts ...server.HandlerOption) server.Handler {
|
||||
options := server.HandlerOptions{
|
||||
Metadata: make(map[string]map[string]string),
|
||||
}
|
||||
|
||||
for _, o := range opts {
|
||||
o(&options)
|
||||
}
|
||||
options := server.NewHandlerOptions(opts...)
|
||||
|
||||
var eps []*registry.Endpoint
|
||||
|
||||
|
Reference in New Issue
Block a user