upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/src/client.rs
AgeCommit message (Collapse)Author
2024-04-08feat: reduce `get_events` timeout 10s ~> 6sDanConwayDev
if relays do not connect and retun events within 3s they will rarely connect at all this could be reversed when get_events is used async
2024-03-28refactor: allow pedantic clippy warning large_futuresDanConwayDev
rust-nostr author suggested this might be a false positive https://github.com/rust-nostr/nostr/pull/375#issuecomment-2022245832
2024-03-27fix: relay connection timeout panicDanConwayDev
upgrade from rust-nostr v0.27 ~> v0.28 introduces this panic presumably get_events attempted to write to the MultiProgress just after it has been removed
2024-03-22ClientSigner renamed ~> NostrSignerDanConwayDev
to reflect new name in rust-nostr
2024-02-15fix: curate default relaysDanConwayDev
wss://eden.nostr.land is a paid relay wss://nostr.wine is paid relay
2024-02-14feat: get_events coutdown to timeoutDanConwayDev
add a ui feature to countdown to timeout so user doesn't consider exiting early
2024-02-14feat: send to default relays, blast repo eventDanConwayDev
improve the distribution of events by sending to default relays in addition to user and repo relays. for better discoverability of repo events, this is also blasted. a temporary fix to blast everything was removed. the less reliable purplepages.es relay is moved to more_fallback_relays that currently isn't used
2024-02-14feat: improve fetch events reportingDanConwayDev
Improve how progress is reported in the UI when fetching events
2024-01-31test: dont print verbose get_events log for testsDanConwayDev
this temporarily fixes tests that rely on the cli output from fetching events by not printing verbose messages during tests when a better solution is implemented for communicating get_events status, it should be intergrated into the tests
2024-01-31fix: intermittent crashing by removing block_onDanConwayDev
a crashing bug was identifed when users ran ngit with large relay sets. the test suite would also stop at random tests and produce a ...running for over 60 seconds error but only on nix configuration and not when using rustup. this change fixes this so the ngit must have been crashing more often when ran with the reduced resources of a nix shell. the test suite consistantly runs successfully under nix when this change is applied to v0.1.0. later changes were made to mitigate this and other issues as hot fixes which either intentionally broke tests (to rush the change through as a hotfix) or unintentionally in the case of nostr 0.27 upgrade in fc3f22eac2bb81823f170f61ba9d39baff76b933 changes introduced in e0f543e8adb144f6deff6ff7ea0c412c9fcac5b4, specifically queuing up relays, are probably not needed so I have increased the number of relays proccessed at any one time from 5 to 15
2024-01-27fix: stop requesting events from blasterDanConwayDev
hardcoding this relay as we have temporarily added to to all new repo events, it will never return any results and connecting to many relays is causing problems
2024-01-26chore: upgrade rust-nostr v0.27.0v0.1.1DanConwayDev
this is a contribution from jk (sectore) that I rebased and squashed into this commit. the tests were broken in the last few commits to rush out some fixes. this change may introduce more issues because of Relay.respond_standard_req.
2024-01-26fix: fetching messages with many unreliable relaysDanConwayDev
the tool had not been tested with large number of user relays, some of which are misbehaving. It works well when sending events to relays but struggles when fetching messages. it seems to crash when accessing a large number of relays. this change queues up relays so many are not connected to at the same time. it also shows more verbose messages about its connection and success with relays. many of the tests will fail as a result of this change as I havn't updated them to expect details of more relay interaction. further changes are urgently needed to improve the speed of fetching events. - relay interaction UI should reflect the smooth approach used for sending events - we don't need to fetch user events from every relay - we could show the user information that we have already collected and allow them to interact
2024-01-23build: env specific fallback relaysDanConwayDev
to prevent tests from poluting public relays
2023-12-01feat(prs-list) list and pull selected as branchDanConwayDev
- fetch prs and present as a selectable list - create and / or checkout branch for selected pr - apply latest patches as commits
2023-11-01feat(prs-create) send to user relaysDanConwayDev
reuse client across login and send events
2023-11-01refactor(client) simply connect flowDanConwayDev
connect immediately before requesting or sending events no longer waiting for all relays to connect before interacting with any of them
2023-11-01feat(login) fetch from discovered write relaysDanConwayDev
immediately request metadata and relay list from any newly discovered user write relays
2023-10-01feat(login) fetch user relays and metadataDanConwayDev
get user relay list and metadata events from relays when keys are used and last fetch attempt was more than an hour ago uses user's write relays if known, otherwise uses fallback relays to achieve this a method for intergration testing event fetching from relays was added
2023-10-01feat(prs-create) send to multiple relaysDanConwayDev
add tests but these currently don't work when run together
2023-10-01feat(prs-create) send commit to relayDanConwayDev
- add client - use client to send event - add async functionality - enabler for relay interaction whilst getting cli input