Skip to content

Commit

Permalink
Properly checking in ended sessions (#350)
Browse files Browse the repository at this point in the history
  • Loading branch information
amamla committed Nov 2, 2020
1 parent 121db30 commit bccfe80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/mongo/session.ex
Expand Up @@ -62,7 +62,7 @@ defmodule Mongo.Session do
"""
@spec end_session(session()) :: :ok
def end_session(pid) do
with {:ok, id, txn} <- :gen_statem.call(pid, :end_session) do
with {:ok, %{id: id, txn: txn}} <- :gen_statem.call(pid, :end_session) do
Mongo.SessionPool.checkin(id, txn)
end
end
Expand Down

0 comments on commit bccfe80

Please sign in to comment.