Signed-off-by: Jakob Borg <[email protected]>
This commit is contained in:
Jakob Borg committed 2026-11-17 05:33:18 +01:00
1 parent 9299ece8d9
commit 08004e61ae
1 file changed
+4
+4
View File
@@ -297,6 +297,8 @@ func (s *DHT) Lookup(ctx context.Context, deviceID protocol.DeviceID) (addresses
var errs []error
for _, date := range discoveryDates(now) {
keys := s.keys.get(deviceID, date)
slog.Debug("Look up record", "device", deviceID, "date", date, "key", keys.record)
value, err := s.ipfs.GetValue(ctx, keys.record)
if errors.Is(err, routing.ErrNotFound) {
continue
@@ -359,6 +361,8 @@ func (s *DHT) Announce(ctx context.Context, deviceID protocol.DeviceID, addresse
return err
}
slog.Debug("Announced record", "key", key)
return nil
}