From ee3ae89ca805e1a33c39eaaf60623710b577fa2d Mon Sep 17 00:00:00 2001 From: Asim Date: Thu, 26 May 2016 20:25:00 +0100 Subject: [PATCH] naming nitpick --- server/handler.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/handler.go b/server/handler.go index d3a25d86..79543b8b 100644 --- a/server/handler.go +++ b/server/handler.go @@ -53,9 +53,9 @@ func InternalHandler(b bool) HandlerOption { // EndpointMetadata is a Handler option that allows metadata to be added to // individual endpoints. -func EndpointMetadata(endpoint string, metadata map[string]string) HandlerOption { +func EndpointMetadata(name string, md map[string]string) HandlerOption { return func(o *HandlerOptions) { - o.Metadata[endpoint] = metadata + o.Metadata[name] = md } }