fix: auto update crawler meta version

PR 038bcd9079 introduced
version '3', we need to make sure that we do not
print an unexpected error instead log a message to
indicate we will auto update the version.
master
Harshavardhana 4 years ago
parent 4a564336fe
commit dc819afa44
  1. 2
      cmd/data-usage-cache.go

@ -549,7 +549,7 @@ func (d *dataUsageCache) deserialize(r io.Reader) error {
return io.ErrUnexpectedEOF
}
switch b[0] {
case 1:
case 1, 2:
return errors.New("cache version deprecated (will autoupdate)")
case dataUsageCacheVer:
default:

Loading…
Cancel
Save