streambed / streambed-rs

Event driven services toolkit
Apache License 2.0
31 stars 5 forks source link

Permit the init function of compaction to be async #37

Closed huntc closed 1 year ago

huntc commented 1 year ago

Without async, it is difficult to put together a compaction strategy that needs to resolve a secret key, for example. Secrets need to be resolved to decrypt record contents, which we like to avoid, but it is possible.

Also declares the commit log and secret store to be clone, send and sync, because they are safely so.