* move "client", "transport" to "config"

This commit is contained in:
Simon Zolin
2019-07-09 18:37:24 +03:00
parent 2682adca39
commit c426ee0108
5 changed files with 17 additions and 14 deletions

View File

@@ -308,7 +308,7 @@ func parseFilterContents(contents []byte) (int, string) {
func (filter *filter) update() (bool, error) {
log.Tracef("Downloading update for filter %d from %s", filter.ID, filter.URL)
resp, err := client.Get(filter.URL)
resp, err := config.client.Get(filter.URL)
if resp != nil && resp.Body != nil {
defer resp.Body.Close()
}