Explorar o código

generalize interface

Shelikhoo %!s(int64=7) %!d(string=hai) anos
pai
achega
176a5c0d44
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      app/proxyman/outbound/handler.go

+ 1 - 1
app/proxyman/outbound/handler.go

@@ -23,7 +23,7 @@ type Handler struct {
 	mux             *mux.ClientManager
 }
 
-func NewHandler(ctx context.Context, config *core.OutboundHandlerConfig) (*Handler, error) {
+func NewHandler(ctx context.Context, config *core.OutboundHandlerConfig) (core.OutboundHandler, error) {
 	v := core.FromContext(ctx)
 	if v == nil {
 		return nil, newError("V is not in context")