Repository navigation
Rename WorkerRegistry -> Worker - #1469
Conversation
|
@bgentry IIRC, it was you that originally wanted
|
079c34a to
1305480
Compare
|
@codex review |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
bgentry
left a comment
There was a problem hiding this comment.
Yep makes sense 👍 You've got a Rust CI failure, maybe an unrelated flake?
|
|
||
| ### Changed | ||
|
|
||
| - **Breaking:** Renamed `WorkerRegistry` to `Workers`, `register` to `add`, and `register_fn` to `add_fn` to align worker registration with Go's naming. Both methods retain their `Result` return type and registration behavior. |
There was a problem hiding this comment.
PR number missing. I thought I got that rule added to AGENTS.md 🤔
There was a problem hiding this comment.
Oops, that's right. Fixed.
|
Codex Review: Didn't find any major issues. More of your lovely PRs please. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Renames: * `WorkerRegistry` -> `Worker` * `WorkerRegistry#register` -> `Worker#add` * `WorkerRegistry#register_fn` -> `Worker#add_fn` Another one to try and bring Rust more in line with Go naming conventions (which have also been copied into other languages). I believe one of our earlier versions of Go used `WorkerRegistry` and an explicit decision was made to rename to `Workers` instead.
1305480 to
0a140ed
Compare
|
CI breakage is actually correct detecting a backwards incompatibility in the API. Not sure how useful this check is in general since we generally know already if we're making a breaking change or not, and it takes quite a long time to run, but it's flagging the right thing in this case. |
Renames:
WorkerRegistry->WorkerWorkerRegistry#register->Workers#addWorkerRegistry#register_fn->Workers#add_fnAnother one to try and bring Rust more in line with Go naming
conventions (which have also been copied into other languages). I
believe one of our earlier versions of Go used
WorkerRegistryand anexplicit decision was made to rename to
Workersinstead.