Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removing mentions of old client in gateway #1054

Merged
merged 1 commit into from
Mar 23, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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