Skip to content

Commit a2c10b9

Browse files
author
brucexc
committed
fix: skip unregistered node status maintain
1 parent 4e751ff commit a2c10b9

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

internal/service/hub/handler/dsl/enforcer/handle_status.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,11 @@ func (e *SimpleEnforcer) maintainNodeStatus(ctx context.Context) error {
8585
)
8686

8787
for i := range nodes {
88+
// deal with unregistered RSSHub node
89+
if nodes[i].Type == schema.NodeTypeRSSHub.String() && nodes[i].ID.Cmp(big.NewInt(10000)) >= 0 {
90+
continue
91+
}
92+
8893
switch nodeVSLInfo[i].Status {
8994
// Handle cases for None, Registered, Outdated, and Initializing statuses
9095
case uint8(schema.NodeStatusNone),

0 commit comments

Comments
 (0)