This commit is contained in:
		
							parent
							
								
									bedb9785dc
								
							
						
					
					
						commit
						8f3b211d83
					
				@ -173,7 +173,7 @@ fn main() -> anyhow::Result<()> {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    let now = Utc::now();
 | 
					    let now = Utc::now();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    let (shard, stopper) = BareMetricsRecorderCore::new(File::create(format!(
 | 
					    let (shard, _stopper) = BareMetricsRecorderCore::new(File::create(format!(
 | 
				
			||||||
        "/tmp/datman_{}.baremetrics",
 | 
					        "/tmp/datman_{}.baremetrics",
 | 
				
			||||||
        now.format("%F_%H%M%S")
 | 
					        now.format("%F_%H%M%S")
 | 
				
			||||||
    ))?)
 | 
					    ))?)
 | 
				
			||||||
 | 
				
			|||||||
@ -91,7 +91,7 @@ pub struct ProgressSender {
 | 
				
			|||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
impl ProgressSender {
 | 
					impl ProgressSender {
 | 
				
			||||||
    pub fn send_now(&mut self, include_message: bool) {
 | 
					    pub fn send_now(&mut self, _include_message: bool) {
 | 
				
			||||||
        self.sender
 | 
					        self.sender
 | 
				
			||||||
            .send((
 | 
					            .send((
 | 
				
			||||||
                RequestBody::Progress {
 | 
					                RequestBody::Progress {
 | 
				
			||||||
 | 
				
			|||||||
@ -116,7 +116,7 @@ fn wrapped_main() -> anyhow::Result<i32> {
 | 
				
			|||||||
    match &opts.command {
 | 
					    match &opts.command {
 | 
				
			||||||
        PileCommand::Retrieve {
 | 
					        PileCommand::Retrieve {
 | 
				
			||||||
            pointer_name,
 | 
					            pointer_name,
 | 
				
			||||||
            subset,
 | 
					            subset: _,
 | 
				
			||||||
            destination,
 | 
					            destination,
 | 
				
			||||||
            num_workers: workers,
 | 
					            num_workers: workers,
 | 
				
			||||||
        } => {
 | 
					        } => {
 | 
				
			||||||
 | 
				
			|||||||
@ -114,8 +114,8 @@ impl<R: RawPile> RawPile for RawPileEncryptor<R> {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    fn build_storage_pipeline(
 | 
					    fn build_storage_pipeline(
 | 
				
			||||||
        &self,
 | 
					        &self,
 | 
				
			||||||
        settings: StoragePipelineSettings,
 | 
					        _settings: StoragePipelineSettings,
 | 
				
			||||||
        controller_send: Sender<ControllerMessage>,
 | 
					        _controller_send: Sender<ControllerMessage>,
 | 
				
			||||||
    ) -> anyhow::Result<Sender<(ChunkId, Vec<u8>)>> {
 | 
					    ) -> anyhow::Result<Sender<(ChunkId, Vec<u8>)>> {
 | 
				
			||||||
        todo!()
 | 
					        todo!()
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
				
			|||||||
@ -383,7 +383,7 @@ impl SqliteBloblogPile {
 | 
				
			|||||||
            pointers_buffered: &mut Vec<(ChunkId, BloblogPointer)>,
 | 
					            pointers_buffered: &mut Vec<(ChunkId, BloblogPointer)>,
 | 
				
			||||||
        ) -> anyhow::Result<()> {
 | 
					        ) -> anyhow::Result<()> {
 | 
				
			||||||
            let mut inner = this.inner.lock().unwrap();
 | 
					            let mut inner = this.inner.lock().unwrap();
 | 
				
			||||||
            let mut txn = inner.connection.transaction()?;
 | 
					            let txn = inner.connection.transaction()?;
 | 
				
			||||||
            {
 | 
					            {
 | 
				
			||||||
                let mut stmt = txn.prepare(
 | 
					                let mut stmt = txn.prepare(
 | 
				
			||||||
                    "INSERT OR FAIL INTO chunks (chunk_id, bloblog, offset) VALUES (?1, ?2, ?3)",
 | 
					                    "INSERT OR FAIL INTO chunks (chunk_id, bloblog, offset) VALUES (?1, ?2, ?3)",
 | 
				
			||||||
 | 
				
			|||||||
@ -349,8 +349,8 @@ impl RawPile for Requester {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    fn build_storage_pipeline(
 | 
					    fn build_storage_pipeline(
 | 
				
			||||||
        &self,
 | 
					        &self,
 | 
				
			||||||
        settings: StoragePipelineSettings,
 | 
					        _settings: StoragePipelineSettings,
 | 
				
			||||||
        controller_send: Sender<ControllerMessage>,
 | 
					        _controller_send: Sender<ControllerMessage>,
 | 
				
			||||||
    ) -> anyhow::Result<Sender<(ChunkId, Vec<u8>)>> {
 | 
					    ) -> anyhow::Result<Sender<(ChunkId, Vec<u8>)>> {
 | 
				
			||||||
        // this one is a little bit more complex.
 | 
					        // this one is a little bit more complex.
 | 
				
			||||||
        // We want to be able to send off multiple write requests at once, but not too many, so we
 | 
					        // We want to be able to send off multiple write requests at once, but not too many, so we
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user