Remove unnecessary map_err

This commit is contained in:
Bojan Serafimov
2022-06-24 09:50:14 -04:00
parent 24a5bd10a0
commit b31ce411d2

View File

@@ -80,7 +80,6 @@ pub fn start_gc_loop(tenantid: ZTenantId) -> anyhow::Result<()> {
.get()
.context("Failed to get START_GC_LOOP")?
.blocking_send(tenantid)
.map_err(|e| anyhow::anyhow!(e))
.context("Failed to send to START_GC_LOOP channel")?;
Ok(())
}
@@ -93,7 +92,6 @@ pub fn start_compaction_loop(tenantid: ZTenantId) -> anyhow::Result<()> {
.get()
.context("failed to get START_COMPACTION_LOOP")?
.blocking_send(tenantid)
.map_err(|e| anyhow::anyhow!(e))
.context("failed to send to START_COMPACTION_LOOP")?;
Ok(())
}