This commit is contained in:
Tamo
2025-07-16 00:49:41 +02:00
parent 21af00a27b
commit d7be43494c
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(()))
}
}