This repository has been archived by the owner on Sep 21, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Decouple worker tasks to run independently of gateway. Fixes #720. * Reduce GatewayManager queries in the gateway handlers on request. Fixes #723.
- Loading branch information
Showing
42 changed files
with
2,062 additions
and
1,790 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
use anyhow::Result; | ||
use async_trait::async_trait; | ||
use noosphere_core::{context::HasMutableSphereContext, data::Did}; | ||
use noosphere_storage::Storage; | ||
|
||
#[cfg(doc)] | ||
use noosphere_core::context::SphereContext; | ||
|
||
/// Returns a [SphereContext] given a [Did]. For gateways, this | ||
/// `did` is the gateway identity, the author of the sphere context. | ||
#[async_trait] | ||
pub trait ContextResolver<C, S>: Clone + Send + Sync | ||
where | ||
C: HasMutableSphereContext<S>, | ||
S: Storage + 'static, | ||
{ | ||
/// Get a [SphereContext] that is mapped from `did`. | ||
async fn get_context(&self, did: &Did) -> Result<C>; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.