Merge pull request #10852 from ipfs/httpretrieval-logging-core-constructor
Some checks failed
CodeQL / codeql (push) Has been cancelled
Docker Build / docker-build (push) Has been cancelled
Gateway Conformance / gateway-conformance (push) Has been cancelled
Gateway Conformance / gateway-conformance-libp2p-experiment (push) Has been cancelled
Go Build / go-build (push) Has been cancelled
Go Check / go-check (push) Has been cancelled
Go Lint / go-lint (push) Has been cancelled
Go Test / go-test (push) Has been cancelled
Interop / interop-prep (push) Has been cancelled
Sharness / sharness-test (push) Has been cancelled
Spell Check / spellcheck (push) Has been cancelled
Interop / helia-interop (push) Has been cancelled
Interop / ipfs-webui (push) Has been cancelled

core:constructor: add a log line about http retrieval
This commit is contained in:
Hector Sanjuan 2025-06-27 10:21:23 +02:00 committed by GitHub
commit a0632aaa05
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -99,6 +99,11 @@ func Bitswap(serverEnabled, libp2pEnabled, httpEnabled bool) interface{} {
if err != nil {
return nil, err
}
logger.Infof("HTTP Retrieval enabled: Allowlist: %t. Denylist: %t",
httpCfg.Allowlist != nil,
httpCfg.Denylist != nil,
)
bitswapHTTP := httpnet.New(in.Host,
httpnet.WithHTTPWorkers(int(httpCfg.NumWorkers.WithDefault(config.DefaultHTTPRetrievalNumWorkers))),
httpnet.WithAllowlist(httpCfg.Allowlist),