safely
--> services/src/web_service.rs:30:27
|
30 | let http_server = server::new(|| {
| ^^^^^^^^^^^ `dyn storage_service::StorageService` cannot be shared between threads safely
|
= help: within `region_searcher::RegionSearcher<'_>`, the trait `std::marker::Sync` is not implemented for `dyn storage_service::StorageService`
= note: required because it appears within the type `&dyn storage_service::StorageService`
= note: required because it appears within the type `region_searcher::RegionSearcher<'_>`
= note: required because of the requirements on the impl of `std::marker::Send` for `®ion_searcher::RegionSearcher<'_>`
= note: required because of the requirements on the impl of `std::marker::Sync` for `std::sync::Arc<®ion_searcher::RegionSearcher<'_>>`
= note: required because it appears within the type `web_service::WebService<'_>`
= note: required because it appears within the type `&web_service::WebService<'_>`
= note: required because it appears within the type `&&web_service::WebService<'_>`
= note: required because it appears within the type `[closure@services/src/web_service.rs:30:39: 34:10 self:&&web_service::WebService<'_>]`
= note: required by `web_service::actix_web::server::new`
мой мозг уже завис кипит, что там ему не так
web_service.rs скинь
he trait std::marker::Sync is not implemented for `dyn storage_service::StorageService
Обсуждают сегодня