diff options
author | Javier Peletier <jpeletier@users.noreply.github.com> | 2018-08-07 17:53:56 +0800 |
---|---|---|
committer | Balint Gabor <balint.g@gmail.com> | 2018-08-07 17:53:56 +0800 |
commit | 64a4e89504b683074077b54518633b76c59ab507 (patch) | |
tree | 60ddee2296a3f337680a586b9897a7c47e95fdaf /swarm | |
parent | eef65b20fcb3408dad11ecc79cd5c914993e8ed2 (diff) | |
download | dexon-64a4e89504b683074077b54518633b76c59ab507.tar.gz dexon-64a4e89504b683074077b54518633b76c59ab507.tar.zst dexon-64a4e89504b683074077b54518633b76c59ab507.zip |
swarm/storage/mru: HOTFIX - fix panic in Handler.update (#17313)
Diffstat (limited to 'swarm')
-rw-r--r-- | swarm/storage/mru/handler.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/swarm/storage/mru/handler.go b/swarm/storage/mru/handler.go index 188b986b8..32f43d502 100644 --- a/swarm/storage/mru/handler.go +++ b/swarm/storage/mru/handler.go @@ -469,7 +469,7 @@ func (h *Handler) update(ctx context.Context, r *SignedResourceUpdate) (updateAd log.Trace("resource update", "updateAddr", r.updateAddr, "lastperiod", r.period, "version", r.version, "data", chunk.SData, "multihash", r.multihash) // update our resources map entry if the new update is older than the one we have, if we have it. - if rsrc != nil && r.period > rsrc.period || (rsrc.period == r.period && r.version > rsrc.version) { + if rsrc != nil && (r.period > rsrc.period || (rsrc.period == r.period && r.version > rsrc.version)) { rsrc.period = r.period rsrc.version = r.version rsrc.data = make([]byte, len(r.data)) |