diff --git a/impl/internal/did/client_test.go b/impl/internal/did/client_test.go index bb845d1e..42ceecd3 100644 --- a/impl/internal/did/client_test.go +++ b/impl/internal/did/client_test.go @@ -12,7 +12,7 @@ import ( ) func TestClient(t *testing.T) { - client, err := NewGatewayClient("http://localhost:8305") + client, err := NewGatewayClient("https://diddht.tbddev.org") require.NoError(t, err) require.NotNil(t, client) diff --git a/impl/pkg/service/pkarr.go b/impl/pkg/service/pkarr.go index 1d677d21..6e095dbc 100644 --- a/impl/pkg/service/pkarr.go +++ b/impl/pkg/service/pkarr.go @@ -110,6 +110,7 @@ func (s *PkarrService) PublishPkarr(ctx context.Context, id string, record pkarr if err = s.cache.Set(id, recordBytes); err != nil { return err } + logrus.WithContext(ctx).WithField("record", id).Debug("added pkarr record to cache and db") // return here and put it in the DHT asynchronously go func() { @@ -119,6 +120,8 @@ func (s *PkarrService) PublishPkarr(ctx context.Context, id string, record pkarr if _, err = s.dht.Put(putCtx, record.BEP44()); err != nil { logrus.WithContext(ctx).WithError(err).Errorf("error from dht.Put for record: %s", id) + } else { + logrus.WithContext(ctx).WithField("record", id).Debug("put pkarr record to DHT") } }()