Skip to content

Commit

Permalink
fix: add missing exposed config
Browse files Browse the repository at this point in the history
  • Loading branch information
geofmureithi committed Jul 10, 2024
1 parent 9e71559 commit bd3cc5c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/apalis-sql/src/mysql.rs
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,11 @@ impl<T: Serialize + DeserializeOwned> MysqlStorage<T> {
pub fn codec(&self) -> &BoxCodec<T, serde_json::Value> {
&self.codec
}

/// Get the config used by the storage
pub fn get_config(&self) -> &Config {
&self.config
}
}

impl<T: DeserializeOwned + Send + Unpin + Sync + 'static> MysqlStorage<T> {
Expand Down
5 changes: 5 additions & 0 deletions packages/apalis-sql/src/sqlite.rs
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,11 @@ impl<T: Serialize + DeserializeOwned> SqliteStorage<T> {
pub fn codec(&self) -> &SqliteCodec<T> {
&self.codec
}

/// Get the config used by the storage
pub fn get_config(&self) -> &Config {
&self.config
}
}

async fn fetch_next(
Expand Down

0 comments on commit bd3cc5c

Please sign in to comment.