Skip to content

Commit c149965

Browse files
author
Devdutt Shenoi
committed
rm unnecessary trait constraint
1 parent 661c738 commit c149965

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/option.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ Cloud Native, log analytics platform for modern applications."#,
170170
Err(ObjectStorageError::Custom(format!("Could not start the server because bucket '{}' contains stale data, please use an empty bucket and restart the server.\n{}", self.storage.get_endpoint(), JOIN_COMMUNITY)))
171171
}
172172

173-
pub fn storage(&self) -> Arc<dyn ObjectStorageProvider + Send + Sync> {
173+
pub fn storage(&self) -> Arc<dyn ObjectStorageProvider> {
174174
self.storage.clone()
175175
}
176176

src/query/mod.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,7 @@ pub struct Query {
6161

6262
impl Query {
6363
// create session context for this query
64-
pub fn create_session_context(
65-
storage: Arc<dyn ObjectStorageProvider + Send>,
66-
) -> SessionContext {
64+
pub fn create_session_context(storage: Arc<dyn ObjectStorageProvider>) -> SessionContext {
6765
let runtime_config = storage
6866
.get_datafusion_runtime()
6967
.with_disk_manager(DiskManagerConfig::NewOs);

0 commit comments

Comments
 (0)