Skip to content

batcher refactor: flatten out go routines#12405

Merged
sebastianst merged 12 commits intodevelopfrom
gk/batcher-node-progress
Nov 19, 2024
Merged

batcher refactor: flatten out go routines#12405
sebastianst merged 12 commits intodevelopfrom
gk/batcher-node-progress

Conversation

@geoknee
Copy link
Contributor

@geoknee geoknee commented Oct 10, 2024

This is a refactor to try and make the two three goroutines spawned by the driver equally clear.

  • Names the previously anonymous receiptsLoop This got done already while this PR was open.
  • Adds some godoc comments about what each loop does
  • Tries to be a little more idiomatic about passing contexts in to functions

@semgrep-app
Copy link
Contributor

semgrep-app bot commented Oct 11, 2024

Semgrep found 1 err-todo finding:

  • op-program/client/l2/engineapi/l2_engine_api.go

TODO in error handling code

Ignore this finding from err-todo.

@geoknee geoknee marked this pull request as ready for review October 11, 2024 10:31
@geoknee geoknee requested review from a team as code owners October 11, 2024 10:31
@geoknee geoknee requested review from axelKingsley and removed request for a team October 11, 2024 10:31
@semgrep-app
Copy link
Contributor

semgrep-app bot commented Oct 18, 2024

Semgrep found 3 sol-style-require-reason findings:

require() must include a reason string

Ignore this finding from sol-style-require-reason.

Semgrep found 6 sol-style-input-arg-fmt findings:

Inputs to functions must be prepended with an underscore (_)

Ignore this finding from sol-style-input-arg-fmt.

Semgrep found 4 golang_fmt_errorf_no_params findings:

No fmt.Errorf invocations without fmt arguments allowed

Ignore this finding from golang_fmt_errorf_no_params.

Semgrep found 1 math-random-used finding:

  • op-supervisor/supervisor/backend/source/head_monitor_test.go

Do not use math/rand. Use crypto/rand instead.

Ignore this finding from math-random-used.

Semgrep found 1 marshal-json-pointer-receiver finding:

  • op-supervisor/supervisor/backend/db/heads/types.go

MarshalJSON with a pointer receiver has surprising results: golang/go#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.

Copy link
Contributor

@vdamle vdamle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!

@geoknee geoknee added the A-op-batcher Area: op-batcher label Nov 12, 2024
Base automatically changed from gk/batcher-cursors-rebased to develop November 18, 2024 09:52
@tynes
Copy link
Contributor

tynes commented Nov 18, 2024

This looks like it needs a rebase now before we can merge it

@geoknee
Copy link
Contributor Author

geoknee commented Nov 18, 2024

This looks like it needs a rebase now before we can merge it

Yes, I'll do that now.

@geoknee geoknee force-pushed the gk/batcher-node-progress branch from fbbf8e4 to d526e42 Compare November 18, 2024 11:27
@sebastianst sebastianst added this pull request to the merge queue Nov 19, 2024
Merged via the queue into develop with commit b3ec4d6 Nov 19, 2024
@sebastianst sebastianst deleted the gk/batcher-node-progress branch November 19, 2024 10:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-op-batcher Area: op-batcher

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants