horaedb icon indicating copy to clipboard operation
horaedb copied to clipboard

Add bounds `Send` and `Sync` to some traits

Open waynexia opened this issue 3 years ago • 0 comments

Description

Some common traits don't bound by Send + Sync in definition but are required (every place) where they are used, like WalManager.

Proposal

Bounding those traits:

#[async_trait]
pub trait WalManager: LogWriter + LogReader + Debug + Send + Sync {}

Additional context

waynexia avatar Jun 28 '22 11:06 waynexia