change metadata type

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
Василий Толстов 2023-02-21 17:14:50 +03:00
parent 9bc1629e77
commit e8281da860

View File

@ -135,12 +135,10 @@ func RegisterRPCHandler(b bool) server.Option {
type handlerMetadataKey struct{}
func HandlerMetadata(md map[string]map[string]string) server.HandlerOption {
func HandlerMetadata(md map[string]map[string]map[string]string) server.HandlerOption {
return server.SetHandlerOption(handlerMetadataKey{}, md)
}
type headerKey struct{}
type handlerOptions struct {
headers []string
cookies []string