Skip to content

Commit f16a388

Browse files
committed
feat: Wrap SessionContext in Arc to enable external access
1 parent 862113d commit f16a388

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

datafusion-postgres/src/handlers.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,10 @@ pub struct DfSessionService {
6262
}
6363

6464
impl DfSessionService {
65-
pub fn new(session_context: SessionContext, catalog_name: Option<String>) -> DfSessionService {
66-
let session_context = Arc::new(session_context);
65+
pub fn new(
66+
session_context: Arc<SessionContext>,
67+
catalog_name: Option<String>,
68+
) -> DfSessionService {
6769
let parser = Arc::new(Parser {
6870
session_context: session_context.clone(),
6971
});

0 commit comments

Comments
 (0)