Hacker News new | ask | show | jobs
by hiimnate 3364 days ago
This is cool, but why does it need to do the heartbeat with dnote.io?

https://github.com/dnote-io/cli/blob/master/main.go#L272

This looks like the only place that you're doing a network request, and it really slows down the program.

1 comments

I added it to see if other people will actually use the tool, and if I should invest time improving it.

I plan to either remove it in the next patch or sending heartbeat less frequently. In terms of privacy, how do you feel about it?

I'd say at the very least, the heartbeat should be spawned asynchronously. As it is, someone DOS-ing your API could cause problems for every user.
What data does it transmit and is it opt-in?
It is a GET request without any extra data. It is not opt-in.