Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
Signed-off-by: Bugen Zhao <[email protected]>
  • Loading branch information
BugenZhao committed Jan 19, 2024
1 parent 52c9b79 commit c9833c5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
7 changes: 5 additions & 2 deletions src/meta/service/src/cloud_service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ use risingwave_connector::source::kafka::private_link::insert_privatelink_broker
use risingwave_connector::source::{
ConnectorProperties, SourceEnumeratorContext, SourceProperties, SplitEnumerator,
};
use risingwave_meta::manager::{MetadataManager, ConnectionId};
use risingwave_meta::manager::{ConnectionId, MetadataManager};
use risingwave_pb::catalog::connection::Info::PrivateLinkService;
use risingwave_pb::cloud_service::cloud_service_server::CloudService;
use risingwave_pb::cloud_service::rw_cloud_validate_source_response::{Error, ErrorType};
Expand Down Expand Up @@ -79,7 +79,10 @@ impl CloudService for CloudServiceImpl {
// broker rewrite map currently only support aws privatelink connection
if let Some(connection_id_str) = source_cfg.get("connection.id") {
let connection_id = connection_id_str.parse::<ConnectionId>().map_err(|e| {
Status::invalid_argument(format!("connection.id is not an integer: {}", e.as_report()))
Status::invalid_argument(format!(
"connection.id is not an integer: {}",
e.as_report()
))
})?;

let connection = match &self.metadata_manager {
Expand Down
3 changes: 1 addition & 2 deletions src/meta/src/backup_restore/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,7 @@ pub async fn get_meta_store(opts: RestoreOpts) -> BackupResult<MetaStoreBackendI
}
let client = EtcdClient::connect(endpoints, Some(options), credentials.is_some())
.await
.context("failed to connect etcd")
?;
.context("failed to connect etcd")?;
Ok(MetaStoreBackendImpl::Etcd(EtcdMetaStore::new(client)))
}
MetaStoreBackend::Mem => Ok(MetaStoreBackendImpl::Mem(MemStore::new())),
Expand Down

0 comments on commit c9833c5

Please sign in to comment.