Skip to content

Commit 0407ef0

Browse files
fix: make linter happy
1 parent df3d900 commit 0407ef0

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

cns/nodesubnet/ip_fetcher_test.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,29 +12,29 @@ import (
1212

1313
// Mock client that simply consumes fetched IPs
1414
type TestConsumer struct {
15-
consumeCount int32
16-
secondaryIPCount int32
15+
consumeCount int
16+
secondaryIPCount int
1717
}
1818

1919
// FetchConsumeCount atomically fetches the consume count
20-
func (c *TestConsumer) FetchConsumeCount() int32 {
20+
func (c *TestConsumer) FetchConsumeCount() int {
2121
return c.consumeCount
2222
}
2323

2424
// FetchSecondaryIPCount atomically fetches the last IP count
25-
func (c *TestConsumer) FetchSecondaryIPCount() int32 {
25+
func (c *TestConsumer) FetchSecondaryIPCount() int {
2626
return c.consumeCount
2727
}
2828

2929
// UpdateConsumeCount atomically updates the consume count
30-
func (c *TestConsumer) updateCounts(ipCount int32) {
30+
func (c *TestConsumer) updateCounts(ipCount int) {
3131
c.consumeCount++
3232
c.secondaryIPCount = ipCount
3333
}
3434

3535
// Mock IP update
3636
func (c *TestConsumer) UpdateIPsForNodeSubnet(ips []netip.Addr) error {
37-
c.updateCounts(int32(len(ips)))
37+
c.updateCounts(len(ips))
3838
return nil
3939
}
4040

0 commit comments

Comments
 (0)