comAtprotoSyncNotifyOfUpdate function

Future<XRPCResponse<EmptyData>> comAtprotoSyncNotifyOfUpdate({
  1. required String hostname,
  2. required ServiceContext $ctx,
  3. Map<String, String>? $headers,
  4. Map<String, String>? $unknown,
})

Notify a crawling service of a recent update, and that crawling should resume. Intended use is after a gap between repo stream events caused the crawling service to disconnect. Does not require auth; implemented by Relay. DEPRECATED: just use com.atproto.sync.requestCrawl

Implementation

Future<XRPCResponse<EmptyData>> comAtprotoSyncNotifyOfUpdate({
  required String hostname,
  required ServiceContext $ctx,
  Map<String, String>? $headers,
  Map<String, String>? $unknown,
}) async => await $ctx.post(
  ns.comAtprotoSyncNotifyOfUpdate,
  headers: {'Content-type': 'application/json', ...?$headers},
  body: {...?$unknown, 'hostname': hostname},
);