cambiato il nome della collections (inizia per lettere e non per numeri)
This commit is contained in:
parent
3ecbd95719
commit
1e55b6e6f0
4 changed files with 4 additions and 4 deletions
|
@ -3,6 +3,6 @@ FROM scratch
|
|||
|
||||
MAINTAINER Michele Fadda "<mikif70@gmail.com>"
|
||||
|
||||
COPY lastlogin_mongodb-v4.3.2 /bin/lastlogin_mongodb
|
||||
COPY lastlogin_mongodb-v4.3.3 /bin/lastlogin_mongodb
|
||||
|
||||
ENTRYPOINT [ "/bin/lastlogin_mongodb" ]
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
#!/bin/bash
|
||||
|
||||
docker build -t mikif70/llmongo:4.3.0 .
|
||||
docker build -t mikif70/llmongo:4.3.3 .
|
||||
|
|
|
@ -102,7 +102,7 @@ func consumer() {
|
|||
}
|
||||
|
||||
for _, val := range allLogins {
|
||||
dt := fmt.Sprintf("%s_ll", val.Date.Format("060102")) // stdYear+stdZeroMonth+stdZeroDay
|
||||
dt := fmt.Sprintf("ll_%s", val.Date.Format("060102")) // stdYear+stdZeroMonth+stdZeroDay
|
||||
if _, ok := bulk[dt]; !ok {
|
||||
for j := range dbs.mdb {
|
||||
b := dbs.mdb[j].DB(dbs.Database).C(dt).Bulk()
|
||||
|
|
2
main.go
2
main.go
|
@ -14,7 +14,7 @@ import (
|
|||
)
|
||||
|
||||
const (
|
||||
_Version = "v4.3.2"
|
||||
_Version = "v4.3.3"
|
||||
_Producer = 0
|
||||
_Consumer = 1
|
||||
_Remover = 2
|
||||
|
|
Loading…
Add table
Reference in a new issue