From f30934ab4f95b6e0578cc4d0f613a3d59d4e37e7 Mon Sep 17 00:00:00 2001 From: Jun Wu Date: Thu, 10 Dec 2020 12:32:23 -0800 Subject: [PATCH] dag: require Send and Sync on Persist::Lock Summary: This will make async migrating easier. Reviewed By: sfilipco Differential Revision: D25350913 fbshipit-source-id: f33bdc0023ae0cc49601504b811991ea6813ff9e --- eden/scm/lib/dag/src/ops.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eden/scm/lib/dag/src/ops.rs b/eden/scm/lib/dag/src/ops.rs index 086ff9465c..d1e200066c 100644 --- a/eden/scm/lib/dag/src/ops.rs +++ b/eden/scm/lib/dag/src/ops.rs @@ -313,7 +313,7 @@ pub trait IdMapSnapshot { /// Describes how to persist state to disk. pub trait Persist { /// Return type of `lock()`. - type Lock; + type Lock: Send + Sync; /// Obtain an exclusive lock for writing. /// This should prevent other writers.