Skip to content

Commit

Permalink
feat: add send and sync to Provider
Browse files Browse the repository at this point in the history
  • Loading branch information
ghztomash committed Apr 25, 2024
1 parent 51a2fab commit cfd686f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lookup/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ impl FromStr for LookupProvider {

impl LookupProvider {
/// Builds the concrete lookup service out of a LookupProvider enum
pub fn build(self) -> Box<dyn Provider> {
pub fn build(self) -> Box<dyn Provider + Send + Sync> {
match self {
LookupProvider::FreeIpApi => Box::new(freeipapi::FreeIpApi),
LookupProvider::IfConfig => Box::new(ifconfig::IfConfig),
Expand Down Expand Up @@ -255,7 +255,7 @@ impl Parameters {
/// ```
#[non_exhaustive]
pub struct LookupService {
provider: Box<dyn Provider>,
provider: Box<dyn Provider + Send + Sync>,
parameters: Option<Parameters>,
}

Expand Down

0 comments on commit cfd686f

Please sign in to comment.