Browse Source

[sub] fix typo #1286

Alireza Ahmadi 1 year ago
parent
commit
4ee986aa71
1 changed files with 2 additions and 2 deletions
  1. 2 2
      sub/subService.go

+ 2 - 2
sub/subService.go

@@ -20,7 +20,7 @@ type SubService struct {
 	address        string
 	showInfo       bool
 	inboundService service.InboundService
-	settingServics service.SettingService
+	settingService service.SettingService
 }
 
 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))
-	updateInterval, _ := s.settingServics.GetSubUpdates()
+	updateInterval, _ := s.settingService.GetSubUpdates()
 	headers = append(headers, fmt.Sprintf("%d", updateInterval))
 	headers = append(headers, subId)
 	return result, headers, nil