mirror of
https://framagit.org/veretcle/scootaloo.git
synced 2025-07-20 17:11:19 +02:00
Add some comment on the fact that the NewStatus can fail
This commit is contained in:
@@ -394,6 +394,8 @@ pub fn run(config: Config) {
|
||||
|
||||
// publish status
|
||||
mastodon.new_status(status).unwrap();
|
||||
// this will panic if it cannot publish the status, which is a good thing, it allows the
|
||||
// last_tweet gathered not to be written
|
||||
|
||||
// write the current state (tweet ID) to avoid copying it another time
|
||||
write_state(&config.scootaloo.last_tweet_path, tweet.id).unwrap_or_else(|e|
|
||||
|
Reference in New Issue
Block a user