Skip to content

Commit

Permalink
[ Edit ] fixed noticied issues by dart fix command
Browse files Browse the repository at this point in the history
  • Loading branch information
anasfik committed Dec 28, 2023
1 parent 25902a7 commit 9de51af
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 7 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changlog

## 6.0.0

- Added ability to create standalone instances of the package services, useful if you want to target Flutter web so you can use only one service for routes and not all of them...
- Break changes in events types, in favor of possible collisions when working with replacable events.

## 5.0.1

- Added documentation config to pubspec.yaml
Expand Down
2 changes: 2 additions & 0 deletions example/cached_nostr_key_pair.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,6 @@ void main() {

final existentKeyPair = Nostr.instance.keysService
.generateKeyPairFromExistingPrivateKey(keyPair.private);

print(existentKeyPair.private);
}
Original file line number Diff line number Diff line change
Expand Up @@ -46,17 +46,14 @@ void main() async {
await Future.delayed(Duration(seconds: 5));

for (int index = 0; index < 50; index++) {
final concurrentSubToForceRelaysReconnection =
Nostr.instance.relaysService.startEventsSubscription(
Nostr.instance.relaysService.startEventsSubscription(
request: req,
);
}

await Future.delayed(Duration(seconds: 5));

final reqTwo = req;

final subTwo = Nostr.instance.relaysService.startEventsSubscription(
Nostr.instance.relaysService.startEventsSubscription(
request: req,
);

Expand Down
2 changes: 1 addition & 1 deletion lib/nostr/instance/relays/relays.dart
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ class NostrRelays implements NostrRelaysBase {
/// ```dart
/// Nostr.instance.relays.closeEventsSubscription("<subscriptionId>");
/// ```
/// {endtemplate}
/// {@endtemplate}
@override
void closeEventsSubscription(String subscriptionId) {
final close = NostrRequestClose(
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ issue_tracker: https://github.com/anasfik/nostr/issues
documentation: https://anasfik.github.io/nostr/

environment:
sdk: ">=3.0.0 <=4.0.0"
sdk: ">=3.0.0 <=3.2.5"

dependencies:
bip340: ^0.1.0
Expand Down

0 comments on commit 9de51af

Please sign in to comment.