mirror of
https://gitlab.com/veilid/veilid.git
synced 2025-02-25 18:55:38 -06:00
keep 'last ditch watch cancel' from failing the whole operation
This commit is contained in:
@@ -332,7 +332,7 @@ impl StorageManager {
|
|||||||
if let Some(rpc_processor) = opt_rpc_processor {
|
if let Some(rpc_processor) = opt_rpc_processor {
|
||||||
// Use the safety selection we opened the record with
|
// Use the safety selection we opened the record with
|
||||||
// Use the writer we opened with as the 'watcher' as well
|
// Use the writer we opened with as the 'watcher' as well
|
||||||
let opt_owvresult = self
|
let opt_owvresult = match self
|
||||||
.outbound_watch_value_cancel(
|
.outbound_watch_value_cancel(
|
||||||
rpc_processor,
|
rpc_processor,
|
||||||
key,
|
key,
|
||||||
@@ -342,7 +342,16 @@ impl StorageManager {
|
|||||||
active_watch.id,
|
active_watch.id,
|
||||||
active_watch.watch_node,
|
active_watch.watch_node,
|
||||||
)
|
)
|
||||||
.await?;
|
.await
|
||||||
|
{
|
||||||
|
Ok(v) => v,
|
||||||
|
Err(e) => {
|
||||||
|
log_stor!(debug
|
||||||
|
"close record watch cancel failed: {}", e
|
||||||
|
);
|
||||||
|
None
|
||||||
|
}
|
||||||
|
};
|
||||||
if let Some(owvresult) = opt_owvresult {
|
if let Some(owvresult) = opt_owvresult {
|
||||||
if owvresult.expiration_ts.as_u64() != 0 {
|
if owvresult.expiration_ts.as_u64() != 0 {
|
||||||
log_stor!(debug
|
log_stor!(debug
|
||||||
|
|||||||
Reference in New Issue
Block a user