Skip to content

Commit

Permalink
Clean up and prepare for revising pbft
Browse files Browse the repository at this point in the history
  • Loading branch information
sgdxbc committed Jun 26, 2024
1 parent 73fc355 commit 767b52b
Show file tree
Hide file tree
Showing 8 changed files with 92 additions and 72 deletions.
10 changes: 3 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
name: Cargo Build & Test

on:
push:
pull_request:
on: [push, pull_request]

env:
CARGO_TERM_COLOR: always
Expand All @@ -13,10 +11,8 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
toolchain:
- stable
- beta
# - nightly
toolchain: [stable, beta]
# toolchain: [stable, beta, nightly]
steps:
- uses: actions/checkout@v3
- run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
Expand Down
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
/target

.vscode/settings.json

*.pdf

*.eif
Expand Down
1 change: 1 addition & 0 deletions .vscode/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
settings.json
17 changes: 15 additions & 2 deletions .vscode/settings.sample.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,23 @@
{
"rust-analyzer.cargo.features": [
"all",
// "wirehair",
"ordinary",
],
"rust-analyzer.server.extraEnv": {
"CHALK_OVERFLOW_DEPTH": "100000000",
"CHALK_SOLVER_MAX_SIZE": "10000000"
"CHALK_SOLVER_MAX_SIZE": "10000000",
},
"files.associations": {
"settings.sample.json": "jsonc",
},
"json.schemas": [
{
"fileMatch": [
"settings.sample.json"
],
"schema": {
"allowTrailingCommas": true
}
}
]
}
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ strip = true

# cSpell:disable
[features]
all = [
ordinary = [
"tikv-jemallocator",
"nitro-enclaves",
"reqwest",
Expand Down
4 changes: 2 additions & 2 deletions examples/stress-session-timer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ use augustus::event::{
};
use tokio::time::Instant;

struct Foo;
pub struct Foo;

#[derive(Debug, derive_more::Display, derive_more::Error)]
struct Exit;
Expand Down Expand Up @@ -76,7 +76,7 @@ impl OnTimer for Foo {
}
}

struct Bar<E> {
pub struct Bar<E> {
sender: E,
timer_id: Option<TimerId>,
start: Instant,
Expand Down
2 changes: 1 addition & 1 deletion src/cops.rs
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,7 @@ impl<M: ReplicaCommon> OnEvent<events::UpdateOk<M::V>>
.partial_cmp(state.version_deps.as_ref()),
Some(Ordering::Greater)
));
state.value = put.value.clone();
state.value.clone_from(&put.value);
state.version_deps = update_ok.version_deps.clone();
let put_ok = PutOk {
version_deps: update_ok.version_deps.clone(),
Expand Down
Loading

0 comments on commit 767b52b

Please sign in to comment.