-
Notifications
You must be signed in to change notification settings - Fork 996
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sync command support --links #1619
Conversation
Codecov Report
@@ Coverage Diff @@
## main #1619 +/- ##
==========================================
+ Coverage 61.27% 61.48% +0.21%
==========================================
Files 133 133
Lines 22460 22552 +92
==========================================
+ Hits 13762 13867 +105
+ Misses 7137 7124 -13
Partials 1561 1561
Continue to review full report at Codecov.
|
388223a
to
9a95c41
Compare
7a4d266
to
5797aa3
Compare
if os.IsNotExist(err) { | ||
logger.Warnf("skip not exist file or directory: %s", path) | ||
return nil | ||
} | ||
listed <- nil | ||
logger.Errorf("list %s: %s", path, err) | ||
return err | ||
return nil |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why not return err?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if return nil , sync producer will quit loop, so here need return err to quit recursive walk
Close #1588