Skip to content

Commit de33d85

Browse files
author
houyuxi
committed
fix: accumulate devices in node map instead of overwriting each iteration
Signed-off-by: houyuxi <yuxi.hou@transwarp.io>
1 parent 8f42445 commit de33d85

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

server/internal/data/node.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ func (r *nodeRepo) updateLocalNodes() {
7979
continue
8080
}
8181
for _, device := range devices {
82-
n[node.UID].Devices = append(bizNode.Devices, &biz.DeviceInfo{
82+
n[node.UID].Devices = append(n[node.UID].Devices, &biz.DeviceInfo{
8383
Index: int(device.Index),
8484
Id: device.ID,
8585
AliasId: device.AliasId,

0 commit comments

Comments
 (0)