Cleaning up code

Getting rid of request url, call id, method: all of them are
 redundant and available through env
This commit is contained in:
Denis Makogon
2017-09-26 15:21:58 +03:00
parent b6b9b55ca9
commit ecaa5eefbf
4 changed files with 14 additions and 51 deletions

View File

@@ -47,7 +47,7 @@ func (p *Protocol) UnmarshalJSON(b []byte) error {
case HTTP:
*p = HTTP
case JSON:
*p = JSON
*p = JSON
default:
return errInvalidProtocol
}