mirror of
https://github.com/vishalxl/nostr_console.git
synced 2025-04-17 08:11:50 +02:00
some tweaks in time, reduced wait initially
from 3 to 2 sec in variable
This commit is contained in:
parent
9558197cac
commit
0eff610aeb
@ -9,7 +9,7 @@ import 'package:bip340/bip340.dart';
|
||||
Future<void> processNotifications(Store node) async {
|
||||
// need a bit of wait to give other events to execute, so do a delay, which allows
|
||||
// relays to recieve and handle new events
|
||||
const int waitMilliSeconds = 150;
|
||||
const int waitMilliSeconds = 200;
|
||||
Future.delayed(const Duration(milliseconds: waitMilliSeconds), () {
|
||||
|
||||
Set<String> newEventIdsSet = node.processIncomingEvent(getRecievedEvents());
|
||||
|
@ -392,12 +392,12 @@ class EventData {
|
||||
String reactorId = reactors[i][0];
|
||||
if( newLikes.contains(reactorId) && reactors[i][1] == "+") {
|
||||
// this is a notifications, print it and then later empty newLikes
|
||||
reactorNames += gNotificationColor + getAuthorName(reactorId) + gColorEndMarker + comma;
|
||||
reactorNames += comma + gNotificationColor + getAuthorName(reactorId) + gColorEndMarker;
|
||||
firstEntry = false;
|
||||
} else {
|
||||
// this is normal printing of the reaction. only print for + for now
|
||||
if( reactors[i][1] == "+")
|
||||
reactorNames += getAuthorName(reactorId);
|
||||
reactorNames += comma + getAuthorName(reactorId);
|
||||
firstEntry = false;
|
||||
}
|
||||
} // end for
|
||||
|
@ -5,7 +5,7 @@ final log = Logger('ExampleLogger');
|
||||
// for debugging
|
||||
String gCheckEventId = ""; //"1763016774ceaa8c135dce01e77923994c5afad4cd3e126704a1292ebb1a577e"; //"15d86a36a620fc1f735f2322f31366b2adde786361f568faf6a0dc8368f7e534";
|
||||
|
||||
const int gDefaultNumWaitSeconds = 3000; // is used in main()
|
||||
const int gDefaultNumWaitSeconds = 2000; // is used in main()
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////////////////////////////////////////// file related settings
|
||||
const String gDefaultEventsFilename = "all_nostr_events.txt";
|
||||
|
Loading…
x
Reference in New Issue
Block a user