Skip to content

Instantly share code, notes, and snippets.

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

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

Select an option

Save bhatti/944d1bb779684d4345c1d77b3ccac6c0 to your computer and use it in GitHub Desktop.
let mutex_repo = factory::build_mutex_repository(
RepositoryProvider::Redis, &config).await.expect("failed to build mutex repository");
let semaphore_repo = factory::build_semaphore_repository(
RepositoryProvider::Redis, &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