Skip to content

Commit

Permalink
chore: remove unused tls logic (#139)
Browse files Browse the repository at this point in the history
  • Loading branch information
samlaf authored Sep 20, 2024
1 parent 10264b0 commit 14286f0
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import (
"github.com/Layr-Labs/eigenda-proxy/commitments"
"github.com/Layr-Labs/eigenda-proxy/metrics"
"github.com/Layr-Labs/eigenda-proxy/store"
"github.com/ethereum-optimism/optimism/op-service/rpc"
"github.com/ethereum/go-ethereum/common/hexutil"
"github.com/ethereum/go-ethereum/log"
)
Expand All @@ -37,7 +36,6 @@ type Server struct {
endpoint string
router store.IRouter
m metrics.Metricer
tls *rpc.ServerTLSConfig
httpServer *http.Server
listener net.Listener
}
Expand Down Expand Up @@ -105,14 +103,8 @@ func (svr *Server) Start() error {
svr.log.Info("Starting DA server", "endpoint", svr.endpoint)
errCh := make(chan error, 1)
go func() {
if svr.tls != nil {
if err := svr.httpServer.ServeTLS(svr.listener, "", ""); err != nil {
errCh <- err
}
} else {
if err := svr.httpServer.Serve(svr.listener); err != nil {
errCh <- err
}
if err := svr.httpServer.Serve(svr.listener); err != nil {
errCh <- err
}
}()

Expand Down

0 comments on commit 14286f0

Please sign in to comment.