Skip to content

Commit

Permalink
feat: worker选取及恢复机制优化 #311
Browse files Browse the repository at this point in the history
  • Loading branch information
flyy1012 committed Nov 28, 2024
1 parent 18dd8b7 commit f39e177
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1112,10 +1112,11 @@ func (m *Mgr) ensureFiles(
blog.Debugf("remote: ensure file %s and match rule %d", fd.File.FilePath, t)
servers := make([]*dcProtocol.Host, 0, 0)
switch t {
case dcSDK.FilterRuleHandleDefault:
r = append(r, "")
continue

//此处会导致文件不被发送,注释掉保证文件都在此处发送,共用内存锁避免OOM
/*case dcSDK.FilterRuleHandleDefault:
r = append(r, "")
continue
*/
case dcSDK.FilterRuleHandleAllDistribution:
// cleaner = append(cleaner, f)
if err = m.fileMessageBank.ensure(sender, sandbox); err != nil {
Expand Down

0 comments on commit f39e177

Please sign in to comment.