Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
progval authored and spb committed Aug 25, 2023
1 parent 2c421a8 commit 0b98196
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion sable_server/src/server_type.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ use sable_network::{config::TlsData, node::*, rpc::*};
use async_trait::async_trait;
use serde::{de::DeserializeOwned, Serialize};
use std::sync::Arc;
use tokio::sync::{broadcast, mpsc::UnboundedReceiver};
use thiserror::Error;
use tokio::sync::{broadcast, mpsc::UnboundedReceiver};

#[derive(Debug, Error)]
pub enum ServerSaveError {
Expand Down
9 changes: 6 additions & 3 deletions sable_services/src/server/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ use sable_network::{
prelude::LookupError,
rpc::*,
};
use sable_server::ServerType;
use sable_server::ServerSaveError;
use sable_server::ServerType;

use std::{collections::HashMap, sync::Arc};

Expand Down Expand Up @@ -79,7 +79,8 @@ where
}

Ok(Self {
db: DatabaseConnection::connect(&config.database).context("Could not connect to database")?,
db: DatabaseConnection::connect(&config.database)
.context("Could not connect to database")?,
node,
history_receiver: Mutex::new(history_receiver),
config,
Expand Down Expand Up @@ -128,7 +129,9 @@ where
}
}

async fn save(self) -> Result<(), ServerSaveError> { Ok(()) }
async fn save(self) -> Result<(), ServerSaveError> {
Ok(())
}

fn restore(
_state: Self::Saved,
Expand Down

0 comments on commit 0b98196

Please sign in to comment.