globalsign / mgo

The MongoDB driver for Go
Other
1.97k stars 230 forks source link

cleanup logic to be more coherent for all 3 change domains #324

Closed rwynn closed 5 years ago

rwynn commented 5 years ago

This commit attempts to adjust the code such that the logic is more coherent across all 3 change domains. E.g. resume currently attempts to close the session through the collection regardless of the change domain. The collection may not exist if the change stream was opened against a db or cluster.