This commit is contained in:
Tamo
2025-07-16 00:49:41 +02:00
parent 3f00f56f9f
commit 05a13f662d
5 changed files with 20 additions and 20 deletions

View File

@ -1150,15 +1150,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(()))
}
}