Forráskód Böngészése

generalize interface

Shelikhoo 7 éve
szülő
commit
176a5c0d44
1 módosított fájl, 1 hozzáadás és 1 törlés
  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")