From b9895e79d247e396f27a6da5e3e234857c91bfdb Mon Sep 17 00:00:00 2001 From: ClaytonNorthey92 Date: Wed, 5 Jun 2024 18:28:42 -0400 Subject: [PATCH] ignore ulimits in tbc when on localnet localnet is small, and is easy for tbc to crawl and index. with localnet, we often run it in CI environments where we have limited or no control over ulimits. there is no need for this in localnet, so let's ignore it if we're on localnet. --- service/tbc/tbc.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/service/tbc/tbc.go b/service/tbc/tbc.go index f8dac181..4d2bb65a 100644 --- a/service/tbc/tbc.go +++ b/service/tbc/tbc.go @@ -1662,7 +1662,7 @@ func (s *Server) Run(pctx context.Context) error { // We need a lot of open files and memory for the indexes. Best effort // to echo to the user what the ulimits are. - if s.ignoreUlimit { + if s.ignoreUlimit || s.cfg.Network == networkLocalnet { log.Warningf("ignoring ulimit requirements") } else if ulimitSupported { if err := verifyUlimits(); err != nil {