core:constructor: add a log line about http retrieval

Similar to broadcast control. Useful for debugging/info purposes.

(cherry picked from commit 024225eaf2)
This commit is contained in:
Hector Sanjuan 2025-06-26 12:42:51 +02:00 committed by Marcin Rataj
parent 1fa8dfcc88
commit 1269b0ce7e

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),