fix(pegboard-envoy): subscribe before registering envoy#4802
Conversation
Code ReviewOverviewThis PR fixes a race condition in The fix is logically correct and the updated comment accurately explains the invariant. Issue: Double Namespace ResolutionThe main concern is that the PR introduces a redundant
This means every new envoy connection now pays two DB round-trips to resolve the same namespace. The cleaner fix would be to refactor Minor Observations
SummaryThe race-condition fix is correct. The main follow-up is eliminating the duplicate |
cf29c73 to
2cdf843
Compare
66a6724 to
090e234
Compare
2cdf843 to
ab8fd17
Compare
090e234 to
7ca2768
Compare
7ca2768 to
bdd460a
Compare
bdd460a to
d5733bb
Compare
MasterPtato
left a comment
There was a problem hiding this comment.
Should remove the dupe ns resolve for name global call in conn.rs
5c033a7 to
e4a53d3
Compare
d5733bb to
80a124a
Compare
80a124a to
c491f97
Compare
e4a53d3 to
a6d7cb6
Compare
c491f97 to
9b2fdc5
Compare
a6d7cb6 to
93e48e9
Compare
9b2fdc5 to
e8f7ae6
Compare
93e48e9 to
4ef7f4e
Compare
4ef7f4e to
71ea925
Compare
e8f7ae6 to
51ba630
Compare
51ba630 to
f8eb8a6
Compare
|
Landed in main via stack-merge fast-forward push. Commits are in main; closing to match. |
Preview packages published to npmInstall with: npm install rivetkit@pr-4802All packages published as Engine binary is shipped via Docker images: docker pull rivetdev/engine:slim-89b4f34
docker pull rivetdev/engine:full-89b4f34Individual packagesnpm install rivetkit@pr-4802
npm install @rivetkit/react@pr-4802
npm install @rivetkit/rivetkit-napi@pr-4802
npm install @rivetkit/workflow-engine@pr-4802 |

Description
Please include a summary of the changes and the related issue. Please also include relevant motivation and context.
Type of change
How Has This Been Tested?
Please describe the tests that you ran to verify your changes.
Checklist: