adiom-data / dsync

Database synchronization tool
https://adiom.io
GNU Affero General Public License v3.0
4 stars 1 forks source link

[Cleanup] Use a base mongo connector #65

Closed adiom-mark closed 1 week ago

adiom-mark commented 1 week ago

Just removing some duplicated code between cosmos and mongo connectors. So just made a shared BaseMongoConnector and made all the fields public.

Also switched to using the iface.Namespace instead of the custom namespace in integrity.go. Let me know if there was actually a reason that was different.