naming nitpick

This commit is contained in:
Asim 2016-05-26 20:25:00 +01:00
parent 8245390b5a
commit ee3ae89ca8

View File

@ -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
}
}