code type
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/pr Build is passing Details

This commit is contained in:
erinn 2021-11-04 14:41:00 -07:00
parent 934bfe4f69
commit 01a2b7833e
1 changed files with 1 additions and 1 deletions

View File

@ -793,7 +793,7 @@ func (cp *cwtchPeer) ShareFile(fileKey string, serializedManifest string) {
ts, err := strconv.ParseInt(tsStr, 10, 64)
if err != nil || ts < time.Now().Unix()-2592000 {
log.Errorf("ignoring request to download a file offered more than 30 days ago")
}s
}
}
cp.eventBus.Publish(event.NewEvent(event.ShareManifest, map[event.Field]string{event.FileKey: fileKey, event.SerializedManifest: serializedManifest}))
}