diff --git a/erigon-lib/direct/bridge_client.go b/erigon-lib/direct/bridge_client.go deleted file mode 100644 index 26bf141ed6b..00000000000 --- a/erigon-lib/direct/bridge_client.go +++ /dev/null @@ -1,31 +0,0 @@ -package direct - -import ( - "context" - - "google.golang.org/grpc" - "google.golang.org/protobuf/types/known/emptypb" - - remote "github.com/erigontech/erigon-lib/gointerfaces/remoteproto" - types "github.com/erigontech/erigon-lib/gointerfaces/typesproto" -) - -type BridgeClientDirect struct { - server remote.BridgeBackendServer -} - -func NewBridgeClientDirect(server remote.BridgeBackendServer) *BridgeClientDirect { - return &BridgeClientDirect{server: server} -} - -func (b *BridgeClientDirect) BorTxnLookup(ctx context.Context, in *remote.BorTxnLookupRequest, opts ...grpc.CallOption) (*remote.BorTxnLookupReply, error) { - return b.server.BorTxnLookup(ctx, in) -} - -func (b *BridgeClientDirect) BorEvents(ctx context.Context, in *remote.BorEventsRequest, opts ...grpc.CallOption) (*remote.BorEventsReply, error) { - return b.server.BorEvents(ctx, in) -} - -func (b *BridgeClientDirect) Version(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*types.VersionReply, error) { - return b.server.Version(ctx, in) -}