Skip to content

Commit 2b1bc3d

Browse files
committed
chore: cleanup, move ee changes
1 parent 23638c9 commit 2b1bc3d

File tree

18 files changed

+45
-38
lines changed

18 files changed

+45
-38
lines changed

frontend/packages/components/src/lib/config.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ const getApiEndpoint = (apiEndpoint: string) => {
3131
}
3232
// Default to staging servers for all other endpoints
3333
return "https://api.staging2.gameinc.io";
34+
} else if (apiEndpoint === "__SAME__") {
35+
return location.origin;
3436
}
3537
return apiEndpoint;
3638
};

frontend/src/components/lib/config.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ const getApiEndpoint = (apiEndpoint: string) => {
3131
}
3232
// Default to staging servers for all other endpoints
3333
return "https://api.staging2.gameinc.io";
34+
} else if (apiEndpoint === "__SAME__") {
35+
return location.origin;
3436
}
3537
return apiEndpoint;
3638
};

packages/common/universaldb/src/error.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ pub enum DatabaseError {
1212

1313
#[error("operation issued while a commit was outstanding")]
1414
UsedDuringCommit,
15-
// #[error(transparent)]
16-
// Custom(Box<dyn std::error::Error + Send + Sync>),
1715
}
1816

1917
impl DatabaseError {

packages/core/bootstrap/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ async fn setup_epoxy_coordinator(ctx: &StandaloneCtx) -> Result<()> {
4242
//
4343
// This does not guarantee the config will change immediately since we can't guarantee that the
4444
// coordinator workflow is running on a node with the newest version of the config.
45-
ctx.signal(epoxy::workflows::coordinator::ReconfigureSignal {})
45+
ctx.signal(epoxy::workflows::coordinator::Reconfigure {})
4646
.to_workflow_id(workflow_id)
4747
.send()
4848
.await?;

packages/services/epoxy/src/ops/explicit_prepare.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,10 @@ pub enum ExplicitPrepareResult {
2020
}
2121

2222
#[operation]
23-
pub async fn explicit_prepare(ctx: &OperationCtx, input: &Input) -> Result<ExplicitPrepareResult> {
23+
pub async fn epoxy_explicit_prepare(
24+
ctx: &OperationCtx,
25+
input: &Input,
26+
) -> Result<ExplicitPrepareResult> {
2427
let replica_id = ctx.config().epoxy_replica_id();
2528
let instance = &input.instance;
2629

packages/services/epoxy/src/ops/kv/get_local.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ pub struct Output {
1818
}
1919

2020
#[operation]
21-
pub async fn get_local(ctx: &OperationCtx, input: &Input) -> Result<Output> {
21+
pub async fn epoxy_kv_get_local(ctx: &OperationCtx, input: &Input) -> Result<Output> {
2222
// Read from local KV store only
2323
let kv_key = keys::keys::KvValueKey::new(input.key.clone());
2424
let subspace = keys::subspace(input.replica_id);

packages/services/epoxy/src/ops/kv/get_optimistic.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ pub struct Output {
3535
///
3636
/// We cannot use quorum reads for the fanout read because of the constraints of Epaxos.
3737
#[operation]
38-
pub async fn get_optimistic(ctx: &OperationCtx, input: &Input) -> Result<Output> {
38+
pub async fn epoxy_kv_get_optimistic(ctx: &OperationCtx, input: &Input) -> Result<Output> {
3939
// Try to read locally
4040
let kv_key = keys::keys::KvValueKey::new(input.key.clone());
4141
let cache_key = keys::keys::KvOptimisticCacheKey::new(input.key.clone());

packages/services/epoxy/src/ops/propose.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ pub struct Input {
2727
}
2828

2929
#[operation]
30-
pub async fn propose(ctx: &OperationCtx, input: &Input) -> Result<ProposalResult> {
30+
pub async fn epoxy_propose(ctx: &OperationCtx, input: &Input) -> Result<ProposalResult> {
3131
let replica_id = ctx.config().epoxy_replica_id();
3232

3333
// Read config

packages/services/epoxy/src/ops/read_cluster_config.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ pub struct Output {
1515
}
1616

1717
#[operation]
18-
pub async fn read_config(ctx: &OperationCtx, input: &Input) -> Result<Output> {
18+
pub async fn epoxy_read_cluster_config(ctx: &OperationCtx, input: &Input) -> Result<Output> {
1919
let config = ctx
2020
.udb()?
2121
.run(|tx| {

packages/services/epoxy/src/replica/message_request.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ pub async fn message_request(
100100
"received coordinator update replica status request"
101101
);
102102

103-
ctx.signal(crate::workflows::coordinator::ReplicaStatusChangeSignal {
103+
ctx.signal(crate::workflows::coordinator::ReplicaStatusChange {
104104
replica_id: req.replica_id,
105105
status: req.status.into(),
106106
})
@@ -118,7 +118,7 @@ pub async fn message_request(
118118
"received begin learning request"
119119
);
120120

121-
ctx.signal(crate::workflows::replica::BeginLearningSignal {
121+
ctx.signal(crate::workflows::replica::BeginLearning {
122122
config: req.config.clone().into(),
123123
})
124124
.to_workflow::<crate::workflows::replica::Workflow>()

0 commit comments

Comments
 (0)