batcher refactor: flatten out go routines
This is a refactor to try and make the two goroutines spawned by the driver equally clear.
- Names the previously anonymous receiptsLoop
- Adds some godoc comments about what each loop does
- Tries to be a little more idiomatic about passing contexts in to functions
Semgrep found 3 sol-style-require-reason findings:
- packages/contracts-bedrock/scripts/deploy/Deploy.s.sol
require() must include a reason string
Ignore this finding from sol-style-require-reason.Semgrep found 6 sol-style-input-arg-fmt findings:
- packages/contracts-bedrock/src/L2/interfaces/ISuperchainWETH.sol
Inputs to functions must be prepended with an underscore (_)
Semgrep found 4 golang_fmt_errorf_no_params findings:
- op-supervisor/supervisor/backend/db/db_test.go
- op-chain-ops/deployer/state/intent.go
- op-chain-ops/deployer/bootstrap/bootstrap.go
No fmt.Errorf invocations without fmt arguments allowed
Semgrep found 1 math-random-used finding:
Do not use math/rand. Use crypto/rand instead.
Semgrep found 1 marshal-json-pointer-receiver finding:
MarshalJSON with a pointer receiver has surprising results: https://github.com/golang/go/issues/22967
Ignore this finding from marshal-json-pointer-receiver.Semgrep found 1 err-nil-check finding:
superfluous nil err check before return
Ignore this finding from err-nil-check.
This looks like it needs a rebase now before we can merge it
This looks like it needs a rebase now before we can merge it
Yes, I'll do that now.