expirePreviousInactivePairings method

  1. @override
Future<void> expirePreviousInactivePairings()
override

Used to expire and delete any inactive pairing

Implementation

@override
Future<void> expirePreviousInactivePairings() async {
  for (var pairing in _appKit.pairings.getAll()) {
    if (!pairing.active) {
      await _appKit.core.expirer.expire(pairing.topic);
    }
  }
}