update metadata
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
8
tcp.go
8
tcp.go
@@ -75,13 +75,7 @@ func (h *tcpServer) Handle(handler server.Handler) error {
|
||||
}
|
||||
|
||||
func (h *tcpServer) 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