Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
q3356564 committed Sep 13, 2024
1 parent 1a55ebb commit 9a90e17
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion core/src/services/redis/backend.rs
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ impl Adapter {
let pool = self
.conn
.get_or_try_init(|| async {
return bb8::Pool::builder()
bb8::Pool::builder()
.build(self.get_redis_connection_manager())
.await
.map_err(|err| {
Expand Down
9 changes: 4 additions & 5 deletions core/src/services/redis/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,12 @@
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
// under the License.

#[cfg(feature = "services-redis")]
mod backend;
#[cfg(feature = "services-redis")]
mod core;

#[cfg(feature = "services-redis")]
pub use backend::RedisBuilder as Redis;

#[cfg(feature = "services-redis")]
mod core;
mod config;
pub use config::RedisConfig;
pub use config::RedisConfig;

0 comments on commit 9a90e17

Please sign in to comment.