We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents fe65fea + 1cc647b commit 6d0dc8eCopy full SHA for 6d0dc8e
2 files changed
cmds/admin_server/storage/mongo/mongo.go
@@ -27,7 +27,7 @@ type MongoStorage struct {
27
collection *mongo.Collection
28
}
29
30
-func NewMongoStorage(ctx xcontext.Context, uri string) (storage.Storage, error) {
+func NewMongoStorage(ctx xcontext.Context, uri string) (*MongoStorage, error) {
31
client, err := mongo.NewClient(options.Client().ApplyURI(uri))
32
if err != nil {
33
return nil, err
cmds/admin_server/storage/storage.go
@@ -21,8 +21,6 @@ var (
21
type Storage interface {
22
StoreLogs(ctx xcontext.Context, logs []Log) error
23
GetLogs(ctx xcontext.Context, query Query) (*Result, error)
24
-
25
- Close(ctx xcontext.Context) error
26
// Log defines the basic log info pushed by the server
0 commit comments