Skip to content

Commit 6cf9da6

Browse files
committed
fix(tunnel): fix ups race condition
1 parent eb42b41 commit 6cf9da6

File tree

15 files changed

+261
-334
lines changed

15 files changed

+261
-334
lines changed

Cargo.lock

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docker/dev-host/docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ services:
150150
- CMD
151151
- curl
152152
- '-f'
153-
- http://127.0.0.1:6421/health
153+
- http://127.0.0.1:6420/health
154154
interval: 2s
155155
timeout: 10s
156156
retries: 10

docker/dev-multidc-multinode/docker-compose.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ services:
184184
- CMD
185185
- curl
186186
- '-f'
187-
- http://127.0.0.1:6421/health
187+
- http://127.0.0.1:6420/health
188188
interval: 2s
189189
timeout: 10s
190190
retries: 10
@@ -224,7 +224,7 @@ services:
224224
- CMD
225225
- curl
226226
- '-f'
227-
- http://127.0.0.1:6421/health
227+
- http://127.0.0.1:6420/health
228228
interval: 2s
229229
timeout: 10s
230230
retries: 10
@@ -264,7 +264,7 @@ services:
264264
- CMD
265265
- curl
266266
- '-f'
267-
- http://127.0.0.1:6421/health
267+
- http://127.0.0.1:6420/health
268268
interval: 2s
269269
timeout: 10s
270270
retries: 10
@@ -444,7 +444,7 @@ services:
444444
- CMD
445445
- curl
446446
- '-f'
447-
- http://127.0.0.1:6421/health
447+
- http://127.0.0.1:6420/health
448448
interval: 2s
449449
timeout: 10s
450450
retries: 10
@@ -484,7 +484,7 @@ services:
484484
- CMD
485485
- curl
486486
- '-f'
487-
- http://127.0.0.1:6421/health
487+
- http://127.0.0.1:6420/health
488488
interval: 2s
489489
timeout: 10s
490490
retries: 10
@@ -524,7 +524,7 @@ services:
524524
- CMD
525525
- curl
526526
- '-f'
527-
- http://127.0.0.1:6421/health
527+
- http://127.0.0.1:6420/health
528528
interval: 2s
529529
timeout: 10s
530530
retries: 10
@@ -702,7 +702,7 @@ services:
702702
- CMD
703703
- curl
704704
- '-f'
705-
- http://127.0.0.1:6421/health
705+
- http://127.0.0.1:6420/health
706706
interval: 2s
707707
timeout: 10s
708708
retries: 10
@@ -742,7 +742,7 @@ services:
742742
- CMD
743743
- curl
744744
- '-f'
745-
- http://127.0.0.1:6421/health
745+
- http://127.0.0.1:6420/health
746746
interval: 2s
747747
timeout: 10s
748748
retries: 10
@@ -782,7 +782,7 @@ services:
782782
- CMD
783783
- curl
784784
- '-f'
785-
- http://127.0.0.1:6421/health
785+
- http://127.0.0.1:6420/health
786786
interval: 2s
787787
timeout: 10s
788788
retries: 10

docker/dev-multidc/docker-compose.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ services:
182182
- CMD
183183
- curl
184184
- '-f'
185-
- http://127.0.0.1:6421/health
185+
- http://127.0.0.1:6420/health
186186
interval: 2s
187187
timeout: 10s
188188
retries: 10
@@ -330,7 +330,7 @@ services:
330330
- CMD
331331
- curl
332332
- '-f'
333-
- http://127.0.0.1:6421/health
333+
- http://127.0.0.1:6420/health
334334
interval: 2s
335335
timeout: 10s
336336
retries: 10
@@ -476,7 +476,7 @@ services:
476476
- CMD
477477
- curl
478478
- '-f'
479-
- http://127.0.0.1:6421/health
479+
- http://127.0.0.1:6420/health
480480
interval: 2s
481481
timeout: 10s
482482
retries: 10

docker/dev-multinode/docker-compose.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ services:
173173
- CMD
174174
- curl
175175
- '-f'
176-
- http://127.0.0.1:6421/health
176+
- http://127.0.0.1:6420/health
177177
interval: 2s
178178
timeout: 10s
179179
retries: 10
@@ -210,7 +210,7 @@ services:
210210
- CMD
211211
- curl
212212
- '-f'
213-
- http://127.0.0.1:6421/health
213+
- http://127.0.0.1:6420/health
214214
interval: 2s
215215
timeout: 10s
216216
retries: 10
@@ -247,7 +247,7 @@ services:
247247
- CMD
248248
- curl
249249
- '-f'
250-
- http://127.0.0.1:6421/health
250+
- http://127.0.0.1:6420/health
251251
interval: 2s
252252
timeout: 10s
253253
retries: 10

docker/dev/docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ services:
173173
- CMD
174174
- curl
175175
- '-f'
176-
- http://127.0.0.1:6421/health
176+
- http://127.0.0.1:6420/health
177177
interval: 2s
178178
timeout: 10s
179179
retries: 10

docker/dev/rivet-engine/config.jsonc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,13 @@
3232
"postgres": {
3333
"url": "postgresql://postgres:postgres@postgres:5432/rivet_engine"
3434
},
35+
"postgres_notify": {
36+
"url": "postgresql://postgres:postgres@postgres:5432/rivet_engine",
37+
"memory_optimization": false
38+
},
39+
// "memory": {
40+
// "channel": "default"
41+
// },
3542
"cache": {
3643
"driver": "in_memory"
3744
},

docker/template/src/docker-compose.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ export function generateDockerCompose(context: TemplateContext) {
294294
],
295295
ports: isPrimary && i === 0 ? [`6420:6420`] : undefined,
296296
healthcheck: {
297-
test: ["CMD", "curl", "-f", "http://127.0.0.1:6421/health"],
297+
test: ["CMD", "curl", "-f", "http://127.0.0.1:6420/health"],
298298
interval: "2s",
299299
timeout: "10s",
300300
retries: 10,

packages/common/config/src/config/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,7 @@ impl Root {
193193
{
194194
self.pubsub = Some(PubSub::PostgresNotify(pubsub::Postgres {
195195
url: pg.url.clone(),
196+
memory_optimization: true,
196197
}));
197198
}
198199

packages/common/universalpubsub/Cargo.toml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,18 @@ edition.workspace = true
99
anyhow.workspace = true
1010
async-nats.workspace = true
1111
async-trait.workspace = true
12+
base64.workspace = true
1213
deadpool-postgres.workspace = true
1314
futures-util.workspace = true
15+
moka.workspace = true
1416
rivet-error.workspace = true
15-
serde.workspace = true
1617
serde_json.workspace = true
18+
serde.workspace = true
19+
sha2.workspace = true
20+
tokio-postgres.workspace = true
1721
tokio.workspace = true
1822
tracing.workspace = true
1923
uuid.workspace = true
20-
tokio-postgres.workspace = true
21-
base64 = "0.22"
22-
sha2.workspace = true
2324

2425
[dev-dependencies]
2526
rivet-config.workspace = true

0 commit comments

Comments
 (0)