-
Notifications
You must be signed in to change notification settings - Fork 6
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
fix bugs to run demo #151
fix bugs to run demo #151
Conversation
if !task.isEOF { | ||
task.cancelFn() | ||
} | ||
return err | ||
} | ||
if reply.IsEof { | ||
log.L().Info("Reach the end of the file ", zap.Any("fileName:", task.srcDir)) | ||
task.isEOF = true | ||
close(task.buffer) |
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 the server crash in the syncing process, the status should be set error
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.
I think the status assignment is here https://github.com/hanfei1991/microcosm/pull/151/files#diff-d9aaad6e272ef0ddb3d4b3e96e3d52db823421edb128f729d16bac74fcbc1253R87
Codecov Report
@@ Coverage Diff @@
## master #151 +/- ##
===========================================
Coverage 49.9464% 49.9464%
===========================================
Files 55 55
Lines 4667 4667
===========================================
Hits 2331 2331
+ Misses 2137 2136 -1
- Partials 199 200 +1 |
relate #152 |
After this PR, cvsTask can run as expected. In addition: