Skip to content

Commit

Permalink
refactor: rename Execute interface to Executor
Browse files Browse the repository at this point in the history
  • Loading branch information
tzdybal committed Nov 5, 2024
1 parent 93ea689 commit 3e6783a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions execution.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
4 changes: 2 additions & 2 deletions proxy/grpc/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
Expand Down
4 changes: 2 additions & 2 deletions proxy/jsonrpc/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
Expand Down

0 comments on commit 3e6783a

Please sign in to comment.