TODO: extractor openrec
This commit is contained in:
@@ -1,2 +0,0 @@
|
||||
database:
|
||||
uri: "root:@tcp(127.0.0.1:4000)/intimate_source"
|
||||
@@ -10,12 +10,10 @@ import (
|
||||
"github.com/474420502/hunter"
|
||||
)
|
||||
|
||||
var targetTypeUser = "openrec_user"
|
||||
var targetTypeRanking = "openrec_ranking"
|
||||
var oer *OpenrecExtratorRanking
|
||||
|
||||
// store 源存储实例, 为存储源数据的实现. 表格具体参考sql/intimate_source.sql
|
||||
var store *intimate.Store = intimate.NewStore("source_openrec")
|
||||
var store *intimate.SourceStore = intimate.NewSourceStore(string(intimate.STOpenrec))
|
||||
|
||||
func init() {
|
||||
oer = &OpenrecExtratorRanking{}
|
||||
@@ -31,7 +29,7 @@ func (oer *OpenrecExtratorRanking) Execute(cxt *hunter.TaskContext) {
|
||||
|
||||
for {
|
||||
|
||||
source, err := store.Pop(targetTypeUser)
|
||||
source, err := store.Pop(string(intimate.TTOpenrecUser))
|
||||
if err != nil {
|
||||
log.Println(err)
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user