1
0
mirror of https://github.com/mxpv/podsync.git synced 2024-05-11 05:55:04 +00:00

Use Feed model

This commit is contained in:
Maksym Pavlenko
2017-11-03 16:04:33 -07:00
parent 90a5b6fee7
commit 0170bbfbca
18 changed files with 119 additions and 107 deletions

View File

@@ -4,7 +4,7 @@ import (
"hash/fnv"
"time"
"github.com/mxpv/podsync/pkg/api"
"github.com/mxpv/podsync/pkg/model"
"github.com/ventu-io/go-shortid"
)
@@ -18,7 +18,7 @@ func hashString(s string) int {
return int(h.Sum32())
}
func (h *hashId) Generate(feed *api.Feed) (string, error) {
func (h *hashId) Generate(feed *model.Feed) (string, error) {
return h.sid.Generate()
}