Skip to content

Commit

Permalink
change: use install_snapshot_v2, remove v0 and v1
Browse files Browse the repository at this point in the history
  • Loading branch information
drmingdrmer committed May 8, 2024
1 parent d799038 commit 1a2b39c
Show file tree
Hide file tree
Showing 6 changed files with 139 additions and 123 deletions.
8 changes: 4 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ sled = { git = "https://github.com/datafuse-extras/sled", tag = "v0.34.7-datafus

# openraft for debugging
#openraft = { git = "https://github.com/drmingdrmer/openraft", branch = "release-0.9", features = [
openraft = { version = "0.9.9", features = [
openraft = { version = "0.9.10", features = [
"serde",
"tracing-log",
"generic-snapshot-data",
Expand Down
1 change: 1 addition & 0 deletions src/meta/service/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#![feature(try_blocks)]
#![feature(coroutines)]
#![feature(lazy_cell)]
#![allow(clippy::uninlined_format_args)]
Expand Down
4 changes: 2 additions & 2 deletions src/meta/service/src/meta_service/meta_node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ use crate::meta_service::forwarder::MetaForwarder;
use crate::meta_service::meta_leader::MetaLeader;
use crate::meta_service::RaftServiceImpl;
use crate::metrics::server_metrics;
use crate::network::Network;
use crate::network::NetworkFactory;
use crate::request_handling::Forwarder;
use crate::request_handling::Handler;
use crate::store::RaftStore;
Expand Down Expand Up @@ -202,7 +202,7 @@ impl MetaNodeBuilder {
.take()
.ok_or_else(|| MetaStartupError::InvalidConfig(String::from("sto is not set")))?;

let net = Network::new(sto.clone());
let net = NetworkFactory::new(sto.clone());

let log_store = sto.clone();
let sm_store = sto.clone();
Expand Down
Loading

0 comments on commit 1a2b39c

Please sign in to comment.