Skip to content

Use singleton MongoDB client for uploader #69

@jpahm

Description

@jpahm

Currently, the uploader gets a MongoDB client from the connectDB function in uploader/database.go. However, this client isn't a singleton and could easily lead to multiple mongo clients being created accidentally in the future.

We should instead wrap the mongo client in a singleton instance the same way it is done for the API.

Metadata

Metadata

Assignees

Labels

Good First IssueGood for newcomersL1A task suitable for someone who is comfortable helping with basic issues.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions