[sub] fix typo #1286

This commit is contained in:
Alireza Ahmadi 2023-12-05 23:09:08 +01:00
parent aa19637288
commit 4ee986aa71

View file

@ -20,7 +20,7 @@ type SubService struct {
address string address string
showInfo bool showInfo bool
inboundService service.InboundService inboundService service.InboundService
settingServics service.SettingService settingService service.SettingService
} }
func (s *SubService) GetSubs(subId string, host string, showInfo bool) ([]string, []string, error) { func (s *SubService) GetSubs(subId string, host string, showInfo bool) ([]string, []string, error) {
@ -87,7 +87,7 @@ func (s *SubService) GetSubs(subId string, host string, showInfo bool) ([]string
} }
} }
headers = append(headers, fmt.Sprintf("upload=%d; download=%d; total=%d; expire=%d", traffic.Up, traffic.Down, traffic.Total, traffic.ExpiryTime/1000)) headers = append(headers, fmt.Sprintf("upload=%d; download=%d; total=%d; expire=%d", traffic.Up, traffic.Down, traffic.Total, traffic.ExpiryTime/1000))
updateInterval, _ := s.settingServics.GetSubUpdates() updateInterval, _ := s.settingService.GetSubUpdates()
headers = append(headers, fmt.Sprintf("%d", updateInterval)) headers = append(headers, fmt.Sprintf("%d", updateInterval))
headers = append(headers, subId) headers = append(headers, subId)
return result, headers, nil return result, headers, nil