You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iceberg.apache.org by fo...@apache.org on 2024/02/20 08:49:25 UTC

(iceberg-rust) branch main updated: feat: Add Sync + Send to Catalog trait (#202)

This is an automated email from the ASF dual-hosted git repository.

fokko pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/iceberg-rust.git


The following commit(s) were added to refs/heads/main by this push:
     new 027f271  feat: Add Sync + Send to Catalog trait (#202)
027f271 is described below

commit 027f2718a210065a0156535141cbbf3209261ea3
Author: ZHENGLIN LI <63...@users.noreply.github.com>
AuthorDate: Tue Feb 20 02:49:19 2024 -0600

    feat: Add Sync + Send to Catalog trait (#202)
---
 crates/iceberg/src/catalog/mod.rs | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/crates/iceberg/src/catalog/mod.rs b/crates/iceberg/src/catalog/mod.rs
index 93d6a84..434ce4d 100644
--- a/crates/iceberg/src/catalog/mod.rs
+++ b/crates/iceberg/src/catalog/mod.rs
@@ -27,6 +27,7 @@ use crate::table::Table;
 use crate::{Error, ErrorKind, Result};
 use async_trait::async_trait;
 use std::collections::HashMap;
+use std::fmt::Debug;
 use std::mem::take;
 use std::ops::Deref;
 use typed_builder::TypedBuilder;
@@ -34,7 +35,7 @@ use uuid::Uuid;
 
 /// The catalog API for Iceberg Rust.
 #[async_trait]
-pub trait Catalog: std::fmt::Debug {
+pub trait Catalog: Debug + Sync + Send {
     /// List namespaces from table.
     async fn list_namespaces(&self, parent: Option<&NamespaceIdent>)
         -> Result<Vec<NamespaceIdent>>;