Revert "[fix]code"

This reverts commit 0431969a73.
This commit is contained in:
maze.y2b@gmail.com
2021-12-02 20:08:34 +08:00
parent b15a7c8b6f
commit 53eb3f15bb
13 changed files with 9 additions and 784 deletions

View File

@ -26,7 +26,7 @@ type fetcher struct {
done chan struct{}
hash [16]byte
parser parser
onUpdate func(interface{}) error
onUpdate func(interface{})
}
func (f *fetcher) Name() string {
@ -167,7 +167,7 @@ func safeWrite(path string, buf []byte) error {
return os.WriteFile(path, buf, fileMode)
}
func newFetcher(name string, interval time.Duration, vehicle types.Vehicle, parser parser, onUpdate func(interface{}) error) *fetcher {
func newFetcher(name string, interval time.Duration, vehicle types.Vehicle, parser parser, onUpdate func(interface{})) *fetcher {
var ticker *time.Ticker
if interval != 0 {
ticker = time.NewTicker(interval)