Skip to content

Commit

Permalink
update: add comment to clarify db_session usage
Browse files Browse the repository at this point in the history
  • Loading branch information
GoranBrkuljan committed Jan 18, 2025
1 parent 81283c6 commit 72f1200
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions examples/actix-web/reddit-api/src/db_session.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ const NODES: [&str; 3] = ["127.0.0.1:9042", "127.0.0.1:9043", "127.0.0.1:9044"];
const KEYSPACE: &str = "reddit_example";
const CACHE_SIZE: usize = 1000;

/// For test use only; do not reinitialize in production.
pub async fn db_session() -> CachingSession {
let db_session = default_session().await;

Expand Down

0 comments on commit 72f1200

Please sign in to comment.