twitch source 非常多, 需要把增量的架构设计好. 修改原来架构.
This commit is contained in:
@@ -51,7 +51,7 @@ func (oer *OpenrecExtratorRanking) Execute(cxt *hunter.TaskContext) {
|
||||
|
||||
for atomic.LoadInt32(&loop) > 0 {
|
||||
|
||||
streamer, err := estore.Pop(string(intimate.Popenrec))
|
||||
streamer, err := estore.Pop(intimate.Popenrec)
|
||||
|
||||
if streamer == nil || err != nil {
|
||||
if err != lasterr {
|
||||
@@ -167,7 +167,7 @@ func (oer *OpenrecExtratorRanking) Execute(cxt *hunter.TaskContext) {
|
||||
streamer.Operator = int32(intimate.OperatorOK)
|
||||
|
||||
source := &intimate.Source{}
|
||||
source.TargetType = string(intimate.TTOpenrecUser)
|
||||
source.Target = intimate.TOpenrecUser
|
||||
source.Ext = string(extJsonBytes)
|
||||
source.StreamerId = sql.NullInt64{Int64: streamer.Uid, Valid: true}
|
||||
sstore.Insert(source)
|
||||
|
||||
Reference in New Issue
Block a user