Skip to content

Commit b754a25

Browse files
authored
Merge pull request ethereum#3 from flashbots/cleanup/export-session-manager
Export api.SessionManager.
2 parents ae2ff27 + d4817ad commit b754a25

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

suave/builder/api/api_server.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,21 @@ import (
66
"github.com/ethereum/go-ethereum/core/types"
77
)
88

9-
// sessionManager is the backend that manages the session state of the builder API.
10-
type sessionManager interface {
9+
// SessionManager is the backend that manages the session state of the builder API.
10+
type SessionManager interface {
1111
NewSession() (string, error)
1212
AddTransaction(sessionId string, tx *types.Transaction) (*types.SimulateTransactionResult, error)
1313
}
1414

15-
func NewServer(s sessionManager) *Server {
15+
func NewServer(s SessionManager) *Server {
1616
api := &Server{
1717
sessionMngr: s,
1818
}
1919
return api
2020
}
2121

2222
type Server struct {
23-
sessionMngr sessionManager
23+
sessionMngr SessionManager
2424
}
2525

2626
func (s *Server) NewSession(ctx context.Context) (string, error) {

0 commit comments

Comments
 (0)