Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
naiba committed Oct 27, 2024
1 parent ff0ff9a commit 417f99d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cmd/dashboard/controller/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,10 @@ func listServiceHistory(c *gin.Context) ([]*model.ServiceInfos, error) {
infos, ok := resultMap[history.ServiceID]
if !ok {
infos = &model.ServiceInfos{
ServiceID: history.ServiceID,
ServerID: history.ServerID,
// ServiceName: singleton.ServiceSentinel.Services[history.ServiceID].Name,
ServerName: singleton.ServerList[history.ServerID].Name,
ServiceID: history.ServiceID,
ServerID: history.ServerID,
ServiceName: singleton.ServiceSentinelShared.Services[history.ServiceID].Name,
ServerName: singleton.ServerList[history.ServerID].Name,
}
resultMap[history.ServiceID] = infos
sortedServiceIDs = append(sortedServiceIDs, history.ServiceID)
Expand Down

0 comments on commit 417f99d

Please sign in to comment.