Add some comment on the fact that the NewStatus can fail

This commit is contained in:
VC
2020-05-19 15:36:01 +02:00
parent 50e27034d8
commit eb0213eeac

View File

@@ -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|