Skip to content
This repository has been archived by the owner on Jul 11, 2019. It is now read-only.

Why setInterval instead of timeout? #1

Open
pateketrueke opened this issue Aug 11, 2017 · 1 comment
Open

Why setInterval instead of timeout? #1

pateketrueke opened this issue Aug 11, 2017 · 1 comment

Comments

@pateketrueke
Copy link

I like your project and reading between lines I found this:

setInterval(() => {

I did not executed your code yet, but I can see those intervals will never cleared.

Is this right or i'm losing something?

@niksrc niksrc closed this as completed Aug 11, 2017
@niksrc niksrc reopened this Aug 11, 2017
@niksrc
Copy link
Contributor

niksrc commented Aug 11, 2017

As you can see i maintain an error rate for the service, I have to reset current error count in each interval.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants