Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

worker: fix a bug of the delay timer. #1185

Merged
merged 1 commit into from
Nov 17, 2022

Commits on Nov 16, 2022

  1. worker: fix a bug of the delay timer.

    `fillTransactions` will call `commitTransactions` twice, if the delay
    timer is expired during the first call, it will make the delay timer
    never be triggered in the second commitTransactions call.
    Pseudo code:
        x := time.NewTimer(time.Second)
        <-x.C
        fmt.Println("read delay 1")
        <-x.C
        fmt.Println("read delay 2")  // will never hit
    setunapo committed Nov 16, 2022
    Configuration menu
    Copy the full SHA
    78831e0 View commit details
    Browse the repository at this point in the history