saveNip05s method

  1. @override
Future<void> saveNip05s(
  1. List<Nip05> nip05s
)
override

Implementation

@override
Future<void> saveNip05s(List<Nip05> nip05s) async {
  final startTime = DateTime.now();
  isar_ds.isar.write((isar) {
    isar.dbNip05s
        .putAll(nip05s.map((nip05) => DbNip05.fromNip05(nip05)).toList());
  });
  final endTime = DateTime.now();
  final duration = endTime.difference(startTime);
  Logger.log.t(
      "SAVED ${nip05s.length} UserNip05s took ${duration.inMilliseconds} ms");
}