Skip to content

Commit

Permalink
Removing mentions of old client in gateway (MystenLabs#1054)
Browse files Browse the repository at this point in the history
  • Loading branch information
oxade authored Mar 23, 2022
1 parent 0e007eb commit 63eca8b
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion sui/src/gateway.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ impl Display for GatewayType {
writeln!(writer, "Gateway Type : Embedded")?;
writeln!(
writer,
"Client state DB folder path : {:?}",
"Gateway state DB folder path : {:?}",
config.db_folder_path
)?;
let authorities = config
Expand Down
4 changes: 2 additions & 2 deletions sui_core/src/authority_aggregator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ const OBJECT_DOWNLOAD_CHANNEL_BOUND: usize = 1024;
pub const DEFAULT_RETRIES: usize = 4;

#[cfg(test)]
#[path = "unit_tests/client_tests.rs"]
mod client_tests;
#[path = "unit_tests/gateway_tests.rs"]
mod gateway_tests;

pub type AsyncResult<'a, T, E> = future::BoxFuture<'a, Result<T, E>>;

Expand Down
3 changes: 1 addition & 2 deletions sui_core/src/gateway_state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,6 @@ pub trait GatewayAPI {
) -> Result<TransactionData, anyhow::Error>;

/// Get the object information
/// TODO: move this out to AddressManager
async fn get_object_info(&self, object_id: ObjectID) -> Result<ObjectRead, anyhow::Error>;

/// Get refs of all objects we own from local cache.
Expand Down Expand Up @@ -383,7 +382,7 @@ impl AccountState {
/// It is important to check that the object is not locked before locking again
/// One should call can_lock_or_unlock before locking as this overwrites the previous lock
/// If the object is already locked, ensure it is unlocked by calling unlock_pending_transaction_objects
/// Client runs sequentially right now so access to this is safe
/// Gateway runs sequentially right now so access to this is safe
/// Double-locking can cause equivocation. TODO: https://github.com/MystenLabs/sui/issues/335
pub fn lock_pending_transaction_objects(
&self,
Expand Down
2 changes: 1 addition & 1 deletion sui_core/src/gateway_state/gateway_store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const MANAGED_ADDRESS_SUBDIR: &str = "managed_addresses";
/// The address manager allows multiple addresses to be managed by one store.
/// It also manages the different DB locations and in future, the configurations
/// Dir Structure
/// AddressManagerStore
/// GatewayStore
/// |
/// ------ SingleAddressStore1
/// |
Expand Down
File renamed without changes.

0 comments on commit 63eca8b

Please sign in to comment.