File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -171,7 +171,7 @@ const REDUCER_ARGS_BUFFER_SIZE: usize = 4_096;
171171const 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}
Original file line number Diff line number Diff line change 1+ use crate :: hash:: Hash ;
12use crate :: messages:: control_db:: HostType ;
23use crate :: subscription:: row_list_builder_pool:: BsatnRowListBuilderPool ;
3- use crate :: { hash:: Hash , host:: v8:: JsWorkerKind } ;
44use once_cell:: sync:: Lazy ;
55use prometheus:: { GaugeVec , HistogramVec , IntCounterVec , IntGaugeVec } ;
66use spacetimedb_datastore:: execution_context:: WorkloadType ;
@@ -11,6 +11,9 @@ use spacetimedb_table::page_pool::PagePool;
1111use std:: { sync:: Once , time:: Duration } ;
1212use 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+
1417metrics_group ! (
1518 pub struct WorkerMetrics {
1619 #[ name = spacetime_worker_connected_clients]
You can’t perform that action at this time.
0 commit comments