Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
vgonkivs committed Aug 1, 2024
1 parent 5aca780 commit c706ec8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
9 changes: 4 additions & 5 deletions nodebuilder/p2p/tls.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,21 @@ package p2p

import (
cfg "crypto/tls"
"os"

"github.com/libp2p/go-libp2p"
ws "github.com/libp2p/go-libp2p/p2p/transport/websocket"
"os"

"github.com/celestiaorg/celestia-node/libs/utils"
)

var (
tlsPath = "TLS_PATH"
)

const (
cert = "/cert.pem"
key = "/key.pem"
)

var tlsPath = "TLS_PATH"

func enableWss() (libp2p.Option, bool, error) {
path := os.Getenv(tlsPath)
exist := utils.Exists(path+cert) && utils.Exists(path+key)
Expand Down
2 changes: 0 additions & 2 deletions nodebuilder/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -257,8 +257,6 @@ func dataPath(base string) string {
return filepath.Join(base, "data")
}

func tlsPath(base string) string { return filepath.Join(base, "tls") }

// constraintBadgerConfig returns BadgerDB configuration optimized for low memory usage and more frequent
// compaction which prevents memory spikes.
// This is particularly important for LNs with restricted memory resources.
Expand Down

0 comments on commit c706ec8

Please sign in to comment.