Skip to content

Commit

Permalink
[#1375] Use more strict type
Browse files Browse the repository at this point in the history
  • Loading branch information
fivitti committed Jun 25, 2024
1 parent 0efc7fc commit e01d567
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/server/database/model/subnet.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ const (
type SubnetStats map[SubnetStatsName]any

// Returns the value of the statistic with the specified name as a big counter.
func (s SubnetStats) GetBigCounter(name string) *storkutil.BigCounter {
func (s SubnetStats) GetBigCounter(name SubnetStatsName) *storkutil.BigCounter {
value, ok := s[name]
if !ok {
return nil
Expand All @@ -69,7 +69,7 @@ func (s SubnetStats) GetBigCounter(name string) *storkutil.BigCounter {
}

// Sets the value of the statistic with the specified name as a big counter.
func (s SubnetStats) SetBigCounter(name string, counter *storkutil.BigCounter) {
func (s SubnetStats) SetBigCounter(name SubnetStatsName, counter *storkutil.BigCounter) {
s[name] = counter.ConvertToNativeType()
}

Expand Down

0 comments on commit e01d567

Please sign in to comment.