This commit is contained in:
Tamo
2025-07-16 00:49:41 +02:00
parent 42d2af4c84
commit aaff6c3685
4 changed files with 19 additions and 19 deletions

View File

@ -1149,15 +1149,11 @@ impl GeoSender<'_, '_> {
}
}
#[derive(Clone, Copy)]
pub struct GeoJsonSender<'a, 'b>(&'a ExtractorBbqueueSender<'b>);
impl GeoJsonSender<'_, '_> {
pub fn send_geojson(&self, docid: DocumentId, value: GeoJson) -> StdResult<(), SendError<()>> {
self.0
.sender
.send(ReceiverAction::GeoJson(docid, value))
.map_err(|_| SendError(()))
self.0.sender.send(ReceiverAction::GeoJson(docid, value)).map_err(|_| SendError(()))
}
}