Skip to content

Commit

Permalink
Revert "fix: Increased the buffer size of errChan in `GetBiggestStake…
Browse files Browse the repository at this point in the history
…rId` (razor-network#1175)"

This reverts commit 99de721.
  • Loading branch information
Yashk767 committed Jun 12, 2024
1 parent 473172a commit e06b0e3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/propose.go
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ func (*UtilsStruct) GetBiggestStakeAndId(client *ethclient.Client, address strin
biggestStakerId uint32
mu sync.Mutex
wg sync.WaitGroup
errChan = make(chan error, numberOfStakers)
errChan = make(chan error, 1)
)

log.Debug("Iterating over all the stakers...")
Expand Down
2 changes: 1 addition & 1 deletion cmd/propose_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -578,7 +578,7 @@ func TestGetBiggestStakeAndId(t *testing.T) {
{
name: "Test 1: When GetBiggestStakeAndId function executes successfully",
args: args{
numOfStakers: 1,
numOfStakers: 2,
remainingTime: 10,
stake: big.NewInt(1).Mul(big.NewInt(5326), big.NewInt(1e18)),
},
Expand Down

0 comments on commit e06b0e3

Please sign in to comment.