1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2025-09-26 04:04:14 -04:00

fix lint warnings

This commit is contained in:
Darien Raymond
2018-05-31 11:55:11 +02:00
parent fe3ddb0ef5
commit adade2bffd
19 changed files with 159 additions and 80 deletions

View File

@@ -62,7 +62,7 @@ type handlerServer struct {
}
func (s *handlerServer) AddInbound(ctx context.Context, request *AddInboundRequest) (*AddInboundResponse, error) {
rawHandler, err := s.s.CreateObject(request.Inbound)
rawHandler, err := core.CreateObject(s.s, request.Inbound)
if err != nil {
return nil, err
}
@@ -96,7 +96,7 @@ func (s *handlerServer) AlterInbound(ctx context.Context, request *AlterInboundR
}
func (s *handlerServer) AddOutbound(ctx context.Context, request *AddOutboundRequest) (*AddOutboundResponse, error) {
rawHandler, err := s.s.CreateObject(request.Outbound)
rawHandler, err := core.CreateObject(s.s, request.Outbound)
if err != nil {
return nil, err
}