-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added a self-updating version number to the CLI. Added a "background task" to receive updates from the "monitoring tasks" through a `mpsc` channel using the new `Update` enum, handling them without stopping the monitor. Fixed bug where the program would repeatedly attempt to send webhooks to invalid links. A vector called `broken_webhooks` is now used to keep track of non-functioning URLs so that the monitor ignores them. Changed logic to stop monitoring sites with no valid webhooks. Changed program to quit when no stores are being monitored. Fixed bug where the program would "spam" print "warning" messages to the console when unable to reach a store. When it fails to connect to a website, the monitor now gives a single warning, before alerting the user that the site is back online once it can reconnect. If it fails to connect to any store at any given time, the program will warn that it likely isn't connected to the internet. Fixed bug where the monitoring tasks would wait for all webhooks to be sent before checking for new store updates. The webhook-sending tasks are no longer `join`ed so that the program never stops "monitoring". Added a `preview()` function to generate webhook previews through https://discohook.org/. These links are currently never used but could be stored in the `shopify-monitor.log` file in the future. Removed several fields from the `struct`s defined in `products.rs`, allowing for faster deserialization of `products.json`, which should reduce latency. Fixed bug where Discord API status codes were incorrectly detected.
- Loading branch information
Showing
9 changed files
with
842 additions
and
491 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.