[client] Remove redundant function parameters (#3016)

This commit is contained in:
chenjiayao authored and GitHub committed 2022-07-14 15:31:32 +08:00
1 parent 6f2571980c
commit 1bc899ec12
3 files changed
+4 -11

No files matched your search

+1 -8
View File
@@ -6,18 +6,11 @@ import (
"github.com/fatedier/frp/pkg/msg"
)
type Type int
const (
EvStartProxy Type = iota
EvCloseProxy
)
var (
ErrPayloadType = errors.New("error payload type")
)
type Handler func(evType Type, payload interface{}) error
type Handler func(payload interface{}) error
type StartProxyPayload struct {
NewProxyMsg *msg.NewProxy