From 3e6783a679ba4909e93bbd7e5f5a1099eb014ad5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20Zdyba=C5=82?= Date: Tue, 5 Nov 2024 23:00:38 +0100 Subject: [PATCH] refactor: rename Execute interface to Executor --- execution.go | 4 ++-- proxy/grpc/server.go | 4 ++-- proxy/jsonrpc/server.go | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/execution.go b/execution.go index 0cc3d6c..88574eb 100644 --- a/execution.go +++ b/execution.go @@ -6,8 +6,8 @@ import ( "github.com/rollkit/go-execution/types" ) -// Execute defines a common interface for interacting with the execution client. -type Execute interface { +// Executor defines a common interface for interacting with the execution client. +type Executor interface { // InitChain initializes the blockchain with genesis information. InitChain( genesisTime time.Time, diff --git a/proxy/grpc/server.go b/proxy/grpc/server.go index 9c5fa42..e285179 100644 --- a/proxy/grpc/server.go +++ b/proxy/grpc/server.go @@ -12,12 +12,12 @@ import ( // Server defines a gRPC proxy server type Server struct { pb.UnimplementedExecutionServiceServer - exec execution.Execute + exec execution.Executor config *Config } // NewServer creates a new ExecutionService gRPC server with the given execution client and configuration. -func NewServer(exec execution.Execute, config *Config) pb.ExecutionServiceServer { +func NewServer(exec execution.Executor, config *Config) pb.ExecutionServiceServer { if config == nil { config = DefaultConfig() } diff --git a/proxy/jsonrpc/server.go b/proxy/jsonrpc/server.go index a7e44aa..a5d94ad 100644 --- a/proxy/jsonrpc/server.go +++ b/proxy/jsonrpc/server.go @@ -12,12 +12,12 @@ import ( // Server defines JSON-RPC proxy server for execution API. type Server struct { - exec execution.Execute + exec execution.Executor config *Config } // NewServer initializes and returns a new Server instance with the given execution interface and configuration. -func NewServer(exec execution.Execute, config *Config) *Server { +func NewServer(exec execution.Executor, config *Config) *Server { if config == nil { config = DefaultConfig() }