From 14286f0240685b96504b6eb3d30c47bf1f7f97e9 Mon Sep 17 00:00:00 2001 From: Samuel Laferriere Date: Thu, 19 Sep 2024 22:10:02 -0700 Subject: [PATCH] chore: remove unused tls logic (#139) --- server/server.go | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/server/server.go b/server/server.go index d6029ad7..20852f98 100644 --- a/server/server.go +++ b/server/server.go @@ -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" ) @@ -37,7 +36,6 @@ type Server struct { endpoint string router store.IRouter m metrics.Metricer - tls *rpc.ServerTLSConfig httpServer *http.Server listener net.Listener } @@ -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 } }()