Skip to content

Commit bccfe80

Browse files
authored
Properly checking in ended sessions (#350)
1 parent 121db30 commit bccfe80

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/mongo/session.ex

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ defmodule Mongo.Session do
6262
"""
6363
@spec end_session(session()) :: :ok
6464
def end_session(pid) do
65-
with {:ok, id, txn} <- :gen_statem.call(pid, :end_session) do
65+
with {:ok, %{id: id, txn: txn}} <- :gen_statem.call(pid, :end_session) do
6666
Mongo.SessionPool.checkin(id, txn)
6767
end
6868
end

0 commit comments

Comments
 (0)