mirror of
https://github.com/foomo/contentfulvalidation.git
synced 2025-10-16 12:25:37 +00:00
fix: error log
This commit is contained in:
parent
04e117f361
commit
c27ad8ab48
@ -36,7 +36,9 @@ func (ap *AttributeProvider) Init() error {
|
|||||||
_, err := s.Every(1).Day().At("03:00").Do(func() {
|
_, err := s.Every(1).Day().At("03:00").Do(func() {
|
||||||
ap.attributes = ap.updateFunc(ap.ctx)
|
ap.attributes = ap.updateFunc(ap.ctx)
|
||||||
})
|
})
|
||||||
log.Must(ap.l, err, "failed to ...")
|
if err != nil {
|
||||||
|
log.Must(ap.l, err, "failed to initialize attribute provider scheduler")
|
||||||
|
}
|
||||||
s.StartAsync()
|
s.StartAsync()
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user