code type
This commit is contained in:
parent
934bfe4f69
commit
01a2b7833e
|
@ -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}))
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue