diff --git a/internal/jsonrpc2/handler.go b/internal/jsonrpc2/handler.go index 1382b5ebed..a61122b840 100644 --- a/internal/jsonrpc2/handler.go +++ b/internal/jsonrpc2/handler.go @@ -18,28 +18,6 @@ import ( // The handler should return ErrNotHandled if it could not handle the request. type Handler func(context.Context, *Request) error -// Direction is used to indicate to a logger whether the logged message was being -// sent or received. -type Direction bool - -const ( - // Send indicates the message is outgoing. - Send = Direction(true) - // Receive indicates the message is incoming. - Receive = Direction(false) -) - -func (d Direction) String() string { - switch d { - case Send: - return "send" - case Receive: - return "receive" - default: - panic("unreachable") - } -} - // MethodNotFound is a Handler that replies to all call requests with the // standard method not found response. // This should normally be the final handler in a chain.