mirror of
https://github.com/aljazceru/crawler_v2.git
synced 2025-12-17 07:24:21 +01:00
convenience methods for node
This commit is contained in:
@@ -135,7 +135,7 @@ func arbiterScan(ctx context.Context, config ArbiterConfig, db redb.RedisDB, sen
|
||||
|
||||
case graph.StatusInactive:
|
||||
// inactive --> active
|
||||
added, found := node.Added()
|
||||
added, found := node.Addition()
|
||||
if !found {
|
||||
return promoted, demoted, fmt.Errorf("node %s doesn't have an addition record", node.ID)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user