Skip to content

Commit e445f9d

Browse files
committed
[worker] add defaults for devices cleanuo
1 parent 9cf76c6 commit e445f9d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

internal/worker/config/config.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ func Default() Config {
4141
Interval: Duration(24 * time.Hour),
4242
MaxAge: Duration(30 * 24 * time.Hour),
4343
},
44+
DevicesCleanup: DevicesCleanup{
45+
Interval: Duration(24 * time.Hour),
46+
MaxAge: Duration(365 * 24 * time.Hour),
47+
},
4448
},
4549
Database: config.Database{
4650
Host: "localhost",
@@ -53,5 +57,9 @@ func Default() Config {
5357
MaxOpenConns: 0,
5458
MaxIdleConns: 0,
5559
},
60+
HTTP: config.HTTP{
61+
Listen: "127.0.0.1:3000",
62+
Proxies: []string{},
63+
},
5664
}
5765
}

0 commit comments

Comments
 (0)