style(util->httpbackoff): Changes package as per @philips suggestion

This commit is contained in:
Camilo Aguilar
2014-05-21 21:12:16 -04:00
parent 3e00a37ef5
commit 2cedebb4eb
6 changed files with 9 additions and 9 deletions

View File

@@ -1,6 +1,6 @@
package datasource
import "github.com/coreos/coreos-cloudinit/util"
import "github.com/coreos/coreos-cloudinit/httpbackoff"
type metadataService struct {
url string
@@ -11,7 +11,7 @@ func NewMetadataService(url string) *metadataService {
}
func (ms *metadataService) Fetch() ([]byte, error) {
client := util.NewHttpClient()
client := httpbackoff.NewHttpClient()
return client.Get(ms.url)
}

View File

@@ -6,7 +6,7 @@ import (
"log"
"strings"
"github.com/coreos/coreos-cloudinit/util"
"github.com/coreos/coreos-cloudinit/httpbackoff"
)
const (
@@ -31,7 +31,7 @@ func (self *procCmdline) Fetch() ([]byte, error) {
return nil, err
}
client := util.NewHttpClient()
client := httpbackoff.NewHttpClient()
cfg, err := client.Get(url)
if err != nil {
return nil, err