Skip to content

Commit

Permalink
fix: don't panic on KV Connect dequeue (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucacasonato authored Oct 30, 2023
1 parent 14254ca commit a638dbe
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion remote/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ use denokv_proto::ReadRange;
use denokv_proto::ReadRangeOutput;
use denokv_proto::SnapshotReadOptions;
use log::error;
use log::warn;
use rand::Rng;
use reqwest::StatusCode;
use serde::Deserialize;
Expand Down Expand Up @@ -574,7 +575,8 @@ impl<P: RemotePermissions> Database for Remote<P> {
async fn dequeue_next_message(
&self,
) -> Result<Option<Self::QMH>, anyhow::Error> {
unimplemented!()
warn!("KV Connect does not support queues.");
std::future::pending().await
}

fn close(&self) {}
Expand Down

0 comments on commit a638dbe

Please sign in to comment.