From acbddff92618e44fd81a6908b5d5ef2c4fa69e99 Mon Sep 17 00:00:00 2001 From: zookzook Date: Fri, 22 Apr 2022 08:57:51 +0200 Subject: [PATCH] fix stream api: don't use the process dictionary here --- lib/mongo/stream.ex | 2 -- mix.exs | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/mongo/stream.ex b/lib/mongo/stream.ex index 883a8cb9..c32d5f54 100644 --- a/lib/mongo/stream.ex +++ b/lib/mongo/stream.ex @@ -38,7 +38,6 @@ defmodule Mongo.Stream do case Mongo.get_session(opts) do nil -> with {:ok, session} <- Session.start_session(topology_pid, :read, opts) do - Process.put(:session, session) {:own, session} end @@ -49,7 +48,6 @@ defmodule Mongo.Stream do def checkin_session(:own, session, topology_pid) do Session.end_session(topology_pid, session) - Process.delete(:session) end def checkin_session(:borrowed, _session, _topology_pid) do diff --git a/mix.exs b/mix.exs index abb89b2f..f69c06e4 100644 --- a/mix.exs +++ b/mix.exs @@ -2,7 +2,7 @@ defmodule Mongodb.Mixfile do use Mix.Project @source_url "https://github.com/zookzook/elixir-mongodb-driver" - @version "0.9.0-rc.0" + @version "0.9.0-rc.1" def project() do [