Skip to content

Adjust POA to adhere to new SeatManager interface

Sign in for the full log view
GitHub Actions / golangci failed Nov 8, 2023 in 0s

reviewdog [golangci] report

reported by reviewdog 🐶

Findings (2)

pkg/protocol/sybilprotection/seatmanager/poa/poa.go|149 col 39| unused-parameter: parameter 'slot' seems to be unused, consider removing or renaming it as _ (revive)
pkg/protocol/sybilprotection/seatmanager/poa/poa.go|156 col 40| unused-parameter: parameter 'epoch' seems to be unused, consider removing or renaming it as _ (revive)

Filtered Findings (0)

Annotations

Check failure on line 149 in pkg/protocol/sybilprotection/seatmanager/poa/poa.go

See this annotation in the file changed.

@github-actions github-actions / golangci

[golangci] pkg/protocol/sybilprotection/seatmanager/poa/poa.go#L149

unused-parameter: parameter 'slot' seems to be unused, consider removing or renaming it as _ (revive)
Raw output
pkg/protocol/sybilprotection/seatmanager/poa/poa.go:149:39: unused-parameter: parameter 'slot' seems to be unused, consider removing or renaming it as _ (revive)
func (s *SeatManager) SeatCountInSlot(slot iotago.SlotIndex) int {
                                      ^

Check failure on line 156 in pkg/protocol/sybilprotection/seatmanager/poa/poa.go

See this annotation in the file changed.

@github-actions github-actions / golangci

[golangci] pkg/protocol/sybilprotection/seatmanager/poa/poa.go#L156

unused-parameter: parameter 'epoch' seems to be unused, consider removing or renaming it as _ (revive)
Raw output
pkg/protocol/sybilprotection/seatmanager/poa/poa.go:156:40: unused-parameter: parameter 'epoch' seems to be unused, consider removing or renaming it as _ (revive)
func (s *SeatManager) SeatCountInEpoch(epoch iotago.EpochIndex) int {
                                       ^