Skip to content

Commit

Permalink
some more cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
abi87 committed Feb 1, 2025
1 parent f91e75e commit 228dd3d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions node-api/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import (

// Server is the API Server service.
type Server struct {
engine Engine[handlers.Context]
engine Engine
config Config
logger log.Logger
}
Expand All @@ -40,7 +40,7 @@ type Server struct {
// disabled.
func New(
config Config,
engine Engine[handlers.Context],
engine Engine,
logger log.Logger,
handlers ...handlers.Handlers,
) *Server {
Expand Down
3 changes: 1 addition & 2 deletions node-api/server/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,10 @@ package server
import (
"github.com/berachain/beacon-kit/log"
"github.com/berachain/beacon-kit/node-api/handlers"
"github.com/berachain/beacon-kit/node-api/server/context"
)

// Engine is a generic interface for an API engine.
type Engine[ContextT context.Context] interface {
type Engine interface {
Run(addr string) error
RegisterRoutes(*handlers.RouteSet, log.Logger)
}

0 comments on commit 228dd3d

Please sign in to comment.