Skip to content

Commit

Permalink
Fix type mismatch
Browse files Browse the repository at this point in the history
  • Loading branch information
kristinaElizDev committed Sep 25, 2024
1 parent 2155251 commit bc9d446
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pkg/group/consensus_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ type ConsensusServiceStatus struct {
// ConsensusService is a freno-oriented interface for making requests that require consensus.
type ConsensusService interface {
ThrottleApp(appName string, ttlMinutes int64, expireAt time.Time, ratio float64) error
ThrottledAppsMap() (result map[string](*base.AppThrottle))
ThrottledAppsMap() (result map[string](*base.DisplayAppThrottle))
UnthrottleApp(appName string) error
RecentAppsMap() (result map[string](*base.RecentApp))

Expand Down
2 changes: 1 addition & 1 deletion pkg/group/mysql.go
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ func (backend *MySQLBackend) ThrottleApp(appName string, ttlMinutes int64, expir
return err
}

func (backend *MySQLBackend) ThrottledAppsMap() (result map[string](*base.AppThrottle)) {
func (backend *MySQLBackend) ThrottledAppsMap() (result map[string](*base.DisplayAppThrottle)) {
return backend.throttler.ThrottledAppsMap()
}

Expand Down
2 changes: 1 addition & 1 deletion pkg/group/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ func (store *Store) SkippedHostsMap() map[string]time.Time {
return store.throttler.SkippedHostsMap()
}

func (store *Store) ThrottledAppsMap() (result map[string](*base.AppThrottle)) {
func (store *Store) ThrottledAppsMap() (result map[string](*base.DisplayAppThrottle)) {
return store.throttler.ThrottledAppsMap()
}

Expand Down

0 comments on commit bc9d446

Please sign in to comment.