Commit 1461c7d1 authored by Eric's avatar Eric

fix upload replay file bugs

parent 5c61fa37
...@@ -44,12 +44,14 @@ func uploadFailedReplay(rootPath string) { ...@@ -44,12 +44,14 @@ func uploadFailedReplay(rootPath string) {
sid := strings.Split(filename, ".")[0] sid := strings.Split(filename, ".")[0]
if len(sid) == 36 { if len(sid) == 36 {
relayRecord := NewReplyRecord(sid) relayRecord := NewReplyRecord(sid)
relayRecord.absGzFilePath = path
relayRecord.target, _ = filepath.Rel(path, rootPath)
go relayRecord.uploadGzipFile(3) go relayRecord.uploadGzipFile(3)
} }
} }
return nil return nil
}) })
logger.Debug("upload Failed Replay Done") logger.Debug("upload Replay Done")
} }
func KeepHeartbeat(interval int) { func KeepHeartbeat(interval int) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment