Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
jkralik committed Jan 23, 2024
1 parent a358bb0 commit 705fb2e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/core/getDevices.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,11 +98,11 @@ func (h *discoveryHandler) Handle(ctx context.Context, conn *client.Conn, links
}
if len(link.ResourceTypes) == 0 {
h.handler.Error(fmt.Errorf("cannot get resource types for %v: is empty", deviceID))
return
continue
}
_, loaded := h.filterDiscoveredDevices.LoadOrStore(deviceID, true)
if loaded {
return
continue
}
d := NewDevice(h.deviceCfg, deviceID, link.ResourceTypes, link.GetEndpoints)
h.handler.Handle(ctx, d)
Expand Down

0 comments on commit 705fb2e

Please sign in to comment.