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

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