-
Joshua Gutow authored
Repeatedly using time.After in a select loop leaks resources as resources are allocated for each timer, but not released until the timer fires. The timer may not fire due to other return paths. By using tickers, this resource leak is no longer able to happen. I verified that this problem no longer exists with the following semgrep command. semgrep --config="r/dgryski.semgrep-go.timeafter.leaky-time-after" Co-authored-by:
mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
71058070
Name |
Last commit
|
Last update |
---|---|---|
.. | ||
cmd | ||
drivers | ||
flags | ||
mock | ||
rollupclient | ||
txmgr | ||
.gitignore | ||
Makefile | ||
config.go | ||
go.mod | ||
go.sum | ||
l2_output_submitter.go | ||
service.go |