File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ import (
24
24
"github.com/celestiaorg/celestia-node/share/shwap"
25
25
)
26
26
27
- var disablePooling = os .Getenv ("CELESTIA_BITSWAP_DISABLE_POOLING " ) == "1"
27
+ var enablePooling = os .Getenv ("CELESTIA_BITSWAP_ENABLE_POOLING " ) == "1"
28
28
29
29
var tracer = otel .Tracer ("shwap/bitswap" )
30
30
@@ -278,7 +278,7 @@ func (g *Getter) isArchival(hdr *header.ExtendedHeader) bool {
278
278
279
279
// getSession takes a session out of the respective session pool
280
280
func (g * Getter ) getSession (isArchival bool ) (ses exchange.Fetcher , release func ()) {
281
- if disablePooling {
281
+ if ! enablePooling {
282
282
ctx , cancel := context .WithCancel (context .Background ())
283
283
f := g .exchange .NewSession (ctx )
284
284
return f , cancel
You can’t perform that action at this time.
0 commit comments