refactor: remove some code

pull/24376/head
Marco Neumann 2021-05-17 12:32:48 +02:00
parent 68729dd5ee
commit 4299371cf2
1 changed files with 1 additions and 13 deletions

View File

@ -155,18 +155,6 @@ pub enum Error {
chunk_id: u32,
},
#[snafu(display(
"Read Buffer Timestamp Error in chunk {}:{} : {}",
chunk_id,
table_name,
source
))]
ReadBufferChunkTimestampError {
source: read_buffer::Error,
table_name: String,
chunk_id: u32,
},
#[snafu(display("Error writing to object store: {}", source))]
WritingToObjectStore {
source: parquet_file::storage::Error,
@ -1130,7 +1118,7 @@ impl CatalogState for Catalog {
let mut chunk = chunk.write();
// update the catalog to say we are done processing
let parquet_chunk = Arc::clone(&Arc::new(parquet_chunk));
let parquet_chunk = Arc::new(parquet_chunk);
chunk
.set_written_to_object_store(parquet_chunk)
.map_err(|e| Box::new(e) as _)