Skip to content

Commit 322d027

Browse files
authored
fix: a compiler error (#378)
1 parent 0f5d880 commit 322d027

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

etl-replicator/src/main.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ use etl_config::shared::ReplicatorConfig;
1111
use etl_telemetry::metrics::init_metrics;
1212
use etl_telemetry::tracing::init_tracing_with_top_level_fields;
1313
use std::sync::Arc;
14-
use thiserror::__private::AsDynError;
1514
use tracing::{error, info};
1615

1716
mod config;
@@ -65,7 +64,7 @@ fn main() -> anyhow::Result<()> {
6564
async fn async_main(replicator_config: ReplicatorConfig) -> anyhow::Result<()> {
6665
// We start the replicator and catch any errors.
6766
if let Err(err) = start_replicator_with_config(replicator_config).await {
68-
sentry::capture_error(err.as_dyn_error());
67+
sentry::capture_error(&*err);
6968
error!("an error occurred in the replicator: {err}");
7069

7170
return Err(err);

0 commit comments

Comments
 (0)