Skip to content

Commit

Permalink
Clean up session after use (#119)
Browse files Browse the repository at this point in the history
  • Loading branch information
ancapdev authored Aug 27, 2024
1 parent d6fb826 commit 8e23d60
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 8e23d60

Please sign in to comment.