Skip to content

Commit

Permalink
added missing files
Browse files Browse the repository at this point in the history
  • Loading branch information
pigmej committed Oct 16, 2024
1 parent b6a7deb commit 7182a36
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions src/partial_quicksync.rs → src/incremental_quicksync.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ use std::{
};
use zstd::stream::Decoder;

pub(crate) const DEFAULT_BASE_URL: &str = "https://quicksync-incrementals.spacemesh.network";
pub(crate) const DEFAULT_BASE_URL: &str = "https://quicksync-partials.spacemesh.network";

#[derive(Clone, Debug, PartialEq, Eq, parse_display::Display, parse_display::FromStr)]
#[display("{from},{to},{hash}")]
Expand Down Expand Up @@ -653,7 +653,7 @@ mod tests {
.with_body(".import backup_source.db layers")
.create();

let err = super::partial_restore(&server.url(), &db_path, dir.path(), 0, 0).unwrap_err();
let err = super::incremental_restore(&server.url(), &db_path, dir.path(), 0, 0).unwrap_err();
assert!(err.to_string().contains("unexpected hash"));
mock_metadata.assert();
mock_query.assert();
Expand All @@ -679,7 +679,7 @@ mod tests {
.with_body(metadata)
.create();

let err = super::partial_restore(&server.url(), &db_path, dir.path(), 0, 0).unwrap_err();
let err = super::incremental_restore(&server.url(), &db_path, dir.path(), 0, 0).unwrap_err();
assert!(err
.to_string()
.contains("No suitable restore points found, seems that state.sql is too old"));
Expand All @@ -705,7 +705,7 @@ mod tests {
.with_status(404)
.with_body("Not Found")
.create();
let err = super::partial_restore(&server.url(), &db_path, dir.path(), 0, 0).unwrap_err();
let err = super::incremental_restore(&server.url(), &db_path, dir.path(), 0, 0).unwrap_err();
println!("{}", err);
assert!(err
.to_string()
Expand Down
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ mod checksum;
mod download;
mod eta;
mod go_spacemesh;
mod incremental_quicksync;
mod parsers;
mod partial_quicksync;
mod read_error_response;
mod reader_with_bytes;
mod sql;
Expand All @@ -24,8 +24,8 @@ use anyhow::{anyhow, Context};
use checksum::*;
use download::download_with_retries;
use go_spacemesh::get_version;
use parsers::*;
use incremental_quicksync::{check_for_restore_points, incremental_restore};
use parsers::*;
use sql::get_last_layer_from_db;
use utils::*;

Expand Down

0 comments on commit 7182a36

Please sign in to comment.