Skip to content

Commit

Permalink
Added Default impl for actor_system and DB backend
Browse files Browse the repository at this point in the history
  • Loading branch information
pzaino committed Sep 22, 2024
1 parent e483627 commit a952fdc
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/actor_system.rs
Original file line number Diff line number Diff line change
Expand Up @@ -122,3 +122,9 @@ impl<M: Send + 'static + std::fmt::Debug> ActorSystem<M> {
}
}
}

impl Default for ActorSystem<String> {
fn default() -> Self {
ActorSystem::new()
}
}
6 changes: 6 additions & 0 deletions src/backends/database.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ impl DatabaseBackend {
}
}

impl Default for DatabaseBackend {
fn default() -> Self {
DatabaseBackend::new()
}
}

#[async_trait]
impl StorageBackend for DatabaseBackend {
// Write data to the database
Expand Down

0 comments on commit a952fdc

Please sign in to comment.