Skip to content

Commit

Permalink
fix nostr examples
Browse files Browse the repository at this point in the history
  • Loading branch information
Ali Chaddad committed Aug 27, 2023
1 parent e97a2e4 commit c68f99b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion web3gw/examples/nostr/chat_consumer.v
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ fn subscribe_messages(mut client RpcWsClient, mut logger log.Logger, secret stri
logger.info('Nostr: Public Key: ${public_key}')

nostr_client.connect_to_relay('https://nostr01.grid.tf/')!
nostr_client.subscribe_direct_messages()!
nostr_client.subscribe_to_direct_messages()!

for {
time.sleep(5 * time.second)
Expand Down
4 changes: 2 additions & 2 deletions web3gw/examples/nostr/stalls.v
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ fn create_stall_and_product(mut client RpcWsClient, mut logger log.Logger, secre

nostr_client.connect_to_relay('https://nostr01.grid.tf/')!

nostr_client.subscribe_stall_creation()!
nostr_client.subscribe_product_creation()!
nostr_client.subscribe_to_stall_creation()!
nostr_client.subscribe_to_product_creation()!

stall := nostr.Stall{
id: 'stall1'
Expand Down

0 comments on commit c68f99b

Please sign in to comment.