Commit f378232
committed
refactor: refactor MongoDB client connection
- Replace `mongo.NewClient` with `mongo.Connect` to create a new client
- Remove the code block that connects the client
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>1 parent 8fca474 commit f378232
1 file changed
Lines changed: 1 addition & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | 24 | | |
29 | 25 | | |
30 | 26 | | |
| |||
0 commit comments