Skip to content

Commit 17375a4

Browse files
committed
Reexport JsWorkerKind
1 parent 6eb360f commit 17375a4

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

crates/core/src/host/v8/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ const REDUCER_ARGS_BUFFER_SIZE: usize = 4_096;
171171
const JS_PROCEDURE_INSTANCE_QUEUE_CAPACITY: usize = 1;
172172

173173
#[derive(Copy, Clone)]
174-
pub(crate) enum JsWorkerKind {
174+
pub enum JsWorkerKind {
175175
Main,
176176
Procedure,
177177
}

crates/core/src/worker_metrics/mod.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1+
use crate::hash::Hash;
12
use crate::messages::control_db::HostType;
23
use crate::subscription::row_list_builder_pool::BsatnRowListBuilderPool;
3-
use crate::{hash::Hash, host::v8::JsWorkerKind};
44
use once_cell::sync::Lazy;
55
use prometheus::{GaugeVec, HistogramVec, IntCounterVec, IntGaugeVec};
66
use spacetimedb_datastore::execution_context::WorkloadType;
@@ -11,6 +11,9 @@ use spacetimedb_table::page_pool::PagePool;
1111
use std::{sync::Once, time::Duration};
1212
use tokio::{spawn, time::sleep};
1313

14+
// Used as a metrics label value, so private billing code needs access to it.
15+
pub use crate::host::v8::JsWorkerKind;
16+
1417
metrics_group!(
1518
pub struct WorkerMetrics {
1619
#[name = spacetime_worker_connected_clients]

0 commit comments

Comments
 (0)