Skip to content
This repository has been archived by the owner on Aug 1, 2022. It is now read-only.

Commit

Permalink
fix(proxy): return tracking remotes as contributor (#1304)
Browse files Browse the repository at this point in the history
Since #1080 constrainted the peer list correctly we had to fix the
incorrect role assigned. Can't think of a case where the remote peer can
be of type `Tracker` at this point.

Fixes #1297
  • Loading branch information
xla committed Nov 20, 2020
1 parent b7cd8e1 commit 3339678
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion proxy/coco/src/state.rs
Expand Up @@ -622,7 +622,7 @@ impl State {
if project.maintainers().contains(&user.urn()) {
peer::Status::replicated(peer::Role::Maintainer, user)
} else {
peer::Status::replicated(peer::Role::Tracker, user)
peer::Status::replicated(peer::Role::Contributor, user)
}
} else {
peer::Status::NotReplicated
Expand Down

0 comments on commit 3339678

Please sign in to comment.