From 94b522262bce150b703dc0cd51a9db645c253222 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zoe=20Faltib=C3=A0?= Date: Wed, 4 Sep 2024 13:57:04 +0200 Subject: [PATCH] add Send trait bound to AnyResolver's inner --- src/indexers/any.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/indexers/any.rs b/src/indexers/any.rs index 3b5dca0..08b3b7f 100644 --- a/src/indexers/any.rs +++ b/src/indexers/any.rs @@ -34,7 +34,7 @@ use crate::{Txid, XChain}; // We need to repeat methods of `WitnessResolve` trait here to avoid making // wrappers around resolver types. TODO: Use wrappers instead -pub trait RgbResolver { +pub trait RgbResolver: Send { fn check(&self, network: Network, expected_block_hash: String) -> Result<(), String>; fn resolve_pub_witness(&self, txid: Txid) -> Result, String>; fn resolve_pub_witness_ord(&self, txid: Txid) -> Result;