Skip to content

Commit c23101a

Browse files
committed
Revert "fix(rpc.go): use JSONRPCRouter instead of JSONRPCServer after merging with refactory-jsonrpc"
This reverts commit 25c8160.
1 parent cfc2678 commit c23101a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/plugin/rpc.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ func (s *PluginRpcServer) SocketPath() string {
9696
}
9797

9898
func (s *PluginRpcServer) handleConnection(conn net.Conn) {
99-
rpcserver := jsonrpc.NewJSONRPCRouter(conn, map[string]*jsonrpc.RPCHandler{})
99+
rpcserver := jsonrpc.NewJSONRPCServer(conn, map[string]*jsonrpc.RPCHandler{})
100100

101101
ctx, cancel := context.WithCancel(context.Background())
102102
defer cancel()
@@ -129,7 +129,7 @@ func (s *PluginRpcServer) handleConnection(conn net.Conn) {
129129
}
130130
}
131131

132-
func (s *PluginRpcServer) handleRpcStatus(ctx context.Context, rpcserver *jsonrpc.JSONRPCRouter) {
132+
func (s *PluginRpcServer) handleRpcStatus(ctx context.Context, rpcserver *jsonrpc.JSONRPCServer) {
133133
s.status = PluginRpcStatusUnknown
134134

135135
log.Printf("Plugin rpc server started. Getting supported methods...")

0 commit comments

Comments
 (0)