github.com/palisadeinc/bor@v0.0.0-20230615125219-ab7196213d15/common/leak/ignore_list.go (about)

     1  package leak
     2  
     3  import "go.uber.org/goleak"
     4  
     5  func IgnoreList() []goleak.Option {
     6  	return []goleak.Option{
     7  		// a list of goroutne leaks that hard to fix due to external dependencies or too big refactoring needed
     8  		goleak.IgnoreTopFunction("github.com/ethereum/go-ethereum/core.(*txSenderCacher).cache"),
     9  		goleak.IgnoreTopFunction("github.com/rjeczalik/notify.(*recursiveTree).dispatch"),
    10  		goleak.IgnoreTopFunction("github.com/rjeczalik/notify.(*recursiveTree).internal"),
    11  		goleak.IgnoreTopFunction("github.com/rjeczalik/notify.(*nonrecursiveTree).dispatch"),
    12  		goleak.IgnoreTopFunction("github.com/rjeczalik/notify.(*nonrecursiveTree).internal"),
    13  		goleak.IgnoreTopFunction("github.com/rjeczalik/notify._Cfunc_CFRunLoopRun"),
    14  
    15  		// todo: this leaks should be fixed
    16  		goleak.IgnoreTopFunction("github.com/ethereum/go-ethereum/metrics.(*meterArbiter).tick"),
    17  		goleak.IgnoreTopFunction("github.com/ethereum/go-ethereum/consensus/ethash.(*remoteSealer).loop"),
    18  		goleak.IgnoreTopFunction("github.com/ethereum/go-ethereum/core.(*BlockChain).updateFutureBlocks"),
    19  		goleak.IgnoreTopFunction("github.com/ethereum/go-ethereum/core/state/snapshot.(*diskLayer).generate"),
    20  		goleak.IgnoreTopFunction("github.com/ethereum/go-ethereum/accounts/abi/bind/backends.nullSubscription.func1"),
    21  		goleak.IgnoreTopFunction("github.com/ethereum/go-ethereum/eth/filters.(*EventSystem).eventLoop"),
    22  	}
    23  }