mirror of
https://github.com/syncthing/syncthing.git
synced 2026-11-21 17:41:31 -08:00
1 file changed
+4
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user