This is an archive of the discontinued Mercurial Phabricator instance.

fileserverclient: don't wait for all batches getfiles before processing
ClosedPublic

Authored by martinvonz on Sep 20 2018, 1:10 AM.
Tags
None
Subscribers
None

Details

Summary

The "new" peer.commandexecutor() (that I added support for in
3bfc430c40eb) waits for all responses to arrive in its exit()
method. I didn't expect that, so I put the processing of the futures
outside the context manager scope. To fix that, we simply need to move
the processing inside the context manager. Note that the command
executor modifies the futures' result() methods so the first result()
call will trigger executor.sendcommands(), so we don't need to
explicitly do that.

Diff Detail

Repository
rFBHGX Facebook Mercurial Extensions
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

martinvonz created this revision.Sep 20 2018, 1:10 AM
Herald added a reviewer: Restricted Project. · View Herald TranscriptSep 20 2018, 1:10 AM
This revision was automatically updated to reflect the committed changes.