diff --git a/pkg/group/consensus_service.go b/pkg/group/consensus_service.go index 29adc04..524450c 100644 --- a/pkg/group/consensus_service.go +++ b/pkg/group/consensus_service.go @@ -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)) diff --git a/pkg/group/mysql.go b/pkg/group/mysql.go index ef4fa8c..a21fb3a 100644 --- a/pkg/group/mysql.go +++ b/pkg/group/mysql.go @@ -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() } diff --git a/pkg/group/store.go b/pkg/group/store.go index 9011699..11e4573 100644 --- a/pkg/group/store.go +++ b/pkg/group/store.go @@ -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() }