Skip to content

Commit

Permalink
Clean up session after use
Browse files Browse the repository at this point in the history
  • Loading branch information
ancapdev committed Jun 10, 2024
1 parent d6fb826 commit 3bba32f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/session.jl
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,7 @@ function transaction(f::Function, client::Client; session_options::SessionOption
if !aborted
result = commit_transaction!(session)
end
Mongoc.destroy!(session)
end

return result
Expand Down

0 comments on commit 3bba32f

Please sign in to comment.