Mercurial > gemma
diff pkg/imports/gm.go @ 4147:c489c78ed525
Made 'go vet' happy with imports again.
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Fri, 02 Aug 2019 11:41:12 +0200 |
parents | af2b20d6c921 |
children | 5466562cca60 |
line wrap: on
line diff
--- a/pkg/imports/gm.go Fri Aug 02 11:34:16 2019 +0200 +++ b/pkg/imports/gm.go Fri Aug 02 11:41:12 2019 +0200 @@ -162,8 +162,8 @@ mt := nts.Message_type_typeWRM var dis []*nts.Date_pair dis = append(dis, &nts.Date_pair{ - Date_start: nts.Date{time.Now().Add(time.Duration(-24) * time.Hour)}, - Date_end: nts.Date{time.Now()}, + Date_start: nts.Date{Time: time.Now().Add(time.Duration(-24) * time.Hour)}, + Date_end: nts.Date{Time: time.Now()}, }) req := &nts.Get_messages_query{ @@ -443,7 +443,7 @@ case err == sql.ErrNoRows: // thats expected, nothing to do case err != nil: - feedback.Warn(pgxutils.ReadableError{err}.Error()) + feedback.Warn(pgxutils.ReadableError{Err: err}.Error()) default: newP++ } @@ -474,7 +474,7 @@ case err == sql.ErrNoRows: // thats expected, nothing to do case err != nil: - feedback.Warn(pgxutils.ReadableError{err}.Error()) + feedback.Warn(pgxutils.ReadableError{Err: err}.Error()) default: newM++ }