mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 08:47:12 +03:00
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
This commit is contained in:
parent
abc97bb6fe
commit
f30934ab4f
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user