Skip to content

Remove atom_to_binary/1 and extend mongo_api public function specs - #274

Merged
comtihon merged 1 commit into
comtihon:masterfrom
turingmachinerepair:fix-otp22-compat
Mar 13, 2026
Merged

Remove atom_to_binary/1 and extend mongo_api public function specs#274
comtihon merged 1 commit into
comtihon:masterfrom
turingmachinerepair:fix-otp22-compat

Conversation

@turingmachinerepair

Copy link
Copy Markdown
Contributor

This PR does two things: fixes OTP22 compatibility and extends mongo_api public function specs.

First problem is due to the lone use of atom_to_binary/1, which introduced in OTP23. That's the only compatibility issue.

Second is related to fact that all public functions of mongo_api are mongoc:transaction calls that can result in {error, timeout}/{error, not_master}/generic {error, Reason}.

@turingmachinerepair turingmachinerepair changed the title Remove atom_to_binary/1 and extend mogno_api public function specs Remove atom_to_binary/1 and extend mongo_api public function specs Mar 12, 2026
@comtihon
comtihon merged commit a84dc12 into comtihon:master Mar 13, 2026
13 checks passed
@comtihon

Copy link
Copy Markdown
Owner

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants