Skip to content

Commit 75c5f06

Browse files
committed
chore: merge tunnel in to runner
1 parent 3882bab commit 75c5f06

File tree

10 files changed

+637
-408
lines changed

10 files changed

+637
-408
lines changed

packages/core/pegboard-serverless/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ use gas::prelude::*;
1212
use namespace::types::RunnerConfig;
1313
use pegboard::keys;
1414
use reqwest_eventsource as sse;
15-
use rivet_runner_protocol::protocol;
15+
use rivet_runner_protocol as protocol;
1616
use tokio::{sync::oneshot, task::JoinHandle, time::Duration};
1717
use universaldb::options::StreamingMode;
1818
use universaldb::utils::IsolationLevel::*;

packages/services/pegboard/src/workflows/actor/destroy.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use gas::prelude::*;
22
use rivet_data::converted::ActorByKeyKeyData;
3-
use rivet_runner_protocol::protocol;
3+
use rivet_runner_protocol as protocol;
44
use universaldb::options::MutationType;
55
use universaldb::utils::IsolationLevel::*;
66

packages/services/pegboard/src/workflows/actor/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use futures_util::FutureExt;
22
use gas::prelude::*;
3-
use rivet_runner_protocol::protocol;
3+
use rivet_runner_protocol as protocol;
44
use rivet_types::actors::CrashPolicy;
55

66
use crate::{errors, workflows::runner::AllocatePendingActorsInput};

packages/services/pegboard/src/workflows/actor/runtime.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use futures_util::StreamExt;
44
use futures_util::{FutureExt, TryStreamExt};
55
use gas::prelude::*;
66
use rivet_metrics::KeyValue;
7-
use rivet_runner_protocol::protocol;
7+
use rivet_runner_protocol as protocol;
88
use universaldb::options::{ConflictRangeType, MutationType, StreamingMode};
99
use universaldb::utils::{FormalKey, IsolationLevel::*};
1010

packages/services/pegboard/src/workflows/runner.rs

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use futures_util::{FutureExt, StreamExt, TryStreamExt};
22
use gas::prelude::*;
33
use rivet_data::converted::{ActorNameKeyData, MetadataKeyData, RunnerByKeyKeyData};
4-
use rivet_runner_protocol::protocol;
4+
use rivet_runner_protocol as protocol;
55
use universaldb::options::{ConflictRangeType, StreamingMode};
66
use universaldb::utils::{FormalChunkedKey, IsolationLevel::*};
77

@@ -1093,20 +1093,9 @@ pub(crate) async fn allocate_pending_actors(
10931093
Ok(AllocatePendingActorsOutput { allocations: res })
10941094
}
10951095

1096-
#[message("pegboard_runner_to_ws")]
1097-
pub struct ToWs {
1098-
pub runner_id: Id,
1099-
pub inner: protocol::ToClient,
1100-
}
1101-
11021096
#[signal("pegboard_runner_check_queue")]
11031097
pub struct CheckQueue {}
11041098

1105-
#[message("pegboard_runner_close_ws")]
1106-
pub struct CloseWs {
1107-
pub runner_id: Id,
1108-
}
1109-
11101099
join_signal!(Main {
11111100
Command(protocol::Command),
11121101
// Forwarded from the ws to this workflow

sdks/rust/runner-protocol/src/lib.rs

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

sdks/rust/runner-protocol/src/protocol.rs

Lines changed: 0 additions & 160 deletions
This file was deleted.

0 commit comments

Comments
 (0)