-
Notifications
You must be signed in to change notification settings - Fork 115
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
go/extra/stats: fix & simplify node-entity mapping
Instead of separately querying for entities and nodes, we can get Entity IDs from nodes directly. This change also fixes a case that previous variant missed: node that was removed from entity list of nodes, but has not yet expired.
- Loading branch information
Showing
2 changed files
with
21 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
go/extra/stats: fix & simplify node-entity mapping | ||
|
||
Instead of separately querying for entities and nodes, we can get Entity IDs | ||
from nodes directly. | ||
|
||
This change also fixes a case that previous variant missed: node that was | ||
removed from entity list of nodes, but has not yet expired. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters