Skip to content

Instantly share code, notes, and snippets.

@bhatti
Created October 11, 2022 05:01
Show Gist options
  • Select an option

  • Save bhatti/aecad1b61173d2e176a280faca5cc860 to your computer and use it in GitHub Desktop.

Select an option

Save bhatti/aecad1b61173d2e176a280faca5cc860 to your computer and use it in GitHub Desktop.
let mutex_repo = factory::build_mutex_repository(
RepositoryProvider::Ddb, &config).await.expect("failed to build mutex repository");
let semaphore_repo = factory::build_semaphore_repository(
RepositoryProvider::Ddb, &config).await.expect("failed to build semaphore repository");
let store = Box::new(DefaultLockStore::new(&config, mutex_repo, semaphore_repo));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment