Skip to content

Commit

Permalink
Rename gateway.rs to gateway_config.rs (MystenLabs#1480)
Browse files Browse the repository at this point in the history
  • Loading branch information
lxfind authored Apr 21, 2022
1 parent 6261723 commit 0dae398
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion sui/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Copyright (c) 2022, Mysten Labs, Inc.
// SPDX-License-Identifier: Apache-2.0

use crate::gateway::GatewayType;
use crate::gateway_config::GatewayType;
use crate::keystore::KeystoreType;
use narwhal_config::Committee as ConsensusCommittee;
use narwhal_config::{Authority, PrimaryAddresses, Stake, WorkerAddresses};
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion sui/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ use anyhow::bail;

pub mod benchmark;
pub mod config;
pub mod gateway;
pub mod gateway_config;
pub mod keystore;
pub mod rest_gateway;
pub mod rpc_gateway;
Expand Down
2 changes: 1 addition & 1 deletion sui/src/rest_server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ use schemars::JsonSchema;
use serde::{Deserialize, Serialize};

use sui::config::PersistedConfig;
use sui::gateway::GatewayConfig;
use sui::gateway_config::GatewayConfig;
use sui::rest_gateway::requests::{
CallRequest, GetObjectInfoRequest, GetObjectSchemaRequest, GetObjectsRequest,
GetTransactionDetailsRequest, MergeCoinRequest, PublishRequest, SignedTransaction,
Expand Down
2 changes: 1 addition & 1 deletion sui/src/rpc_gateway.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ use sui_types::messages::{CertifiedTransaction, Transaction, TransactionData};
use sui_types::object::ObjectRead;

use crate::config::PersistedConfig;
use crate::gateway::GatewayConfig;
use crate::gateway_config::GatewayConfig;
use crate::rest_gateway::responses::GetObjectInfoResponse;
use crate::rest_gateway::responses::{NamedObjectRef, ObjectResponse};

Expand Down
2 changes: 1 addition & 1 deletion sui/src/sui_commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use crate::config::{make_default_narwhal_committee, CONSENSUS_DB_NAME};
use crate::config::{
AuthorityPrivateInfo, Config, GenesisConfig, NetworkConfig, PersistedConfig, WalletConfig,
};
use crate::gateway::{GatewayConfig, GatewayType};
use crate::gateway_config::{GatewayConfig, GatewayType};
use crate::keystore::{Keystore, KeystoreType, SuiKeystore};
use crate::{sui_config_dir, SUI_GATEWAY_CONFIG, SUI_NETWORK_CONFIG, SUI_WALLET_CONFIG};
use anyhow::{anyhow, bail};
Expand Down
2 changes: 1 addition & 1 deletion sui/src/unit_tests/cli_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ use sui::config::{
AccountConfig, Config, GenesisConfig, NetworkConfig, ObjectConfig, PersistedConfig,
WalletConfig, AUTHORITIES_DB_NAME,
};
use sui::gateway::{GatewayConfig, GatewayType};
use sui::gateway_config::{GatewayConfig, GatewayType};
use sui::keystore::KeystoreType;
use sui::sui_commands::SuiCommand;
use sui::sui_json::SuiJsonValue;
Expand Down
2 changes: 1 addition & 1 deletion sui/src/unit_tests/sui_network.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
use std::path::Path;

use sui::config::{AuthorityPrivateInfo, Config, GenesisConfig, WalletConfig};
use sui::gateway::{GatewayConfig, GatewayType};
use sui::gateway_config::{GatewayConfig, GatewayType};
use sui::keystore::KeystoreType;
use sui::sui_commands::{genesis, SuiNetwork};
use sui::{SUI_GATEWAY_CONFIG, SUI_NETWORK_CONFIG, SUI_WALLET_CONFIG};
Expand Down

0 comments on commit 0dae398

Please sign in to comment.