Revert "Simplify [ReceivePack]MessageSender logic"

This reverts commit 7c4f0c3f30.

Reason for revert: Google uses a different MessageSender implementation
internally.

The rebased version of this revert keeps the cosmetic variable
renamings.

Change-Id: Ieda44268c38819dd887e9563effc794e278e6810
This commit is contained in:
Dave Borowitz
2018-08-02 17:41:51 +00:00
parent 6f0b8d70b9
commit e81ce714a0
5 changed files with 24 additions and 5 deletions

View File

@@ -331,7 +331,7 @@ class InProcessProtocol extends TestProtocol<Context> {
}
AsyncReceiveCommits arc =
factory.create(projectState, identifiedUser, db, ImmutableSetMultimap.of());
factory.create(projectState, identifiedUser, db, null, ImmutableSetMultimap.of());
if (arc.canUpload() != Capable.OK) {
throw new ServiceNotAuthorizedException();
}