mirror of https://github.com/v2ray/v2ray-core
gofmt
parent
51bd5132f6
commit
f17b865982
|
@ -11,7 +11,7 @@ var (
|
|||
|
||||
func RegisterProtocolConfigCreator(protocol TransportProtocol, creator ConfigCreator) error {
|
||||
if _, found := globalTransportConfigCreatorCache[protocol]; found {
|
||||
return newError("protocol: " + TransportProtocol_name[int32(protocol)]+ " is already registered").AtError()
|
||||
return newError("protocol ", TransportProtocol_name[int32(protocol)], " is already registered").AtError()
|
||||
}
|
||||
globalTransportConfigCreatorCache[protocol] = creator
|
||||
return nil
|
||||
|
|
|
@ -2,4 +2,6 @@ package http
|
|||
|
||||
import "v2ray.com/core/common/errors"
|
||||
|
||||
func newError(values ...interface{}) *errors.Error { return errors.New(values...).Path("Transport", "Internet", "HTTP") }
|
||||
func newError(values ...interface{}) *errors.Error {
|
||||
return errors.New(values...).Path("Transport", "Internet", "HTTP")
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue