server: fix NewHandlerOptions

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
Василий Толстов 2021-01-10 03:36:23 +03:00
parent 8930c3fbb7
commit bcf7cf10d3

View File

@ -302,7 +302,8 @@ type HandlerOptions struct {
// NewHandlerOptions creates new HandlerOptions
func NewHandlerOptions(opts ...HandlerOption) HandlerOptions {
options := HandlerOptions{
Context: context.Background(),
Context: context.Background(),
Metadata: make(map[string]metadata.Metadata),
}
for _, o := range opts {