chore(storage): rename InfoErrorer to Infoer (bad name)
This commit is contained in:
@@ -10,18 +10,18 @@ import (
|
|||||||
type Storage struct {
|
type Storage struct {
|
||||||
mergedServers models.AllServers
|
mergedServers models.AllServers
|
||||||
hardcodedServers models.AllServers
|
hardcodedServers models.AllServers
|
||||||
logger InfoErrorer
|
logger Infoer
|
||||||
filepath string
|
filepath string
|
||||||
}
|
}
|
||||||
|
|
||||||
type InfoErrorer interface {
|
type Infoer interface {
|
||||||
Info(s string)
|
Info(s string)
|
||||||
}
|
}
|
||||||
|
|
||||||
// New creates a new storage and reads the servers from the
|
// New creates a new storage and reads the servers from the
|
||||||
// embedded servers file and the file on disk.
|
// embedded servers file and the file on disk.
|
||||||
// Passing an empty filepath disables writing servers to a file.
|
// Passing an empty filepath disables writing servers to a file.
|
||||||
func New(logger InfoErrorer, filepath string) (storage *Storage, err error) {
|
func New(logger Infoer, filepath string) (storage *Storage, err error) {
|
||||||
// error returned covered by unit test
|
// error returned covered by unit test
|
||||||
harcodedServers, _ := parseHardcodedServers()
|
harcodedServers, _ := parseHardcodedServers()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user