saveRelaySet method

  1. @override
Future<void> saveRelaySet(
  1. RelaySet relaySet
)
override

Implementation

@override
Future<void> saveRelaySet(RelaySet relaySet) async {
  final startTime = DateTime.now();
  isar_ds.isar.write((isar) {
    isar.dbRelaySets.put(DbRelaySet.fromRelaySet(relaySet));
  });
  final endTime = DateTime.now();
  final duration = endTime.difference(startTime);
  Logger.log.t(
      "SAVED relaySet ${relaySet.name}+${relaySet.pubKey} took ${duration.inMilliseconds} ms");
}