Skip to content

Commit

Permalink
fix deadline
Browse files Browse the repository at this point in the history
  • Loading branch information
RyougiNevermore committed Nov 22, 2024
1 parent 8219145 commit 5b30aba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion async/future.go
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ func (f *futureImpl[R]) UnexpectedEOF() (err error) {

func (f *futureImpl[R]) Deadline() (deadline time.Time, ok bool) {
deadline = f.deadline
ok = deadline.IsZero()
ok = !deadline.IsZero()
return
}

Expand Down

0 comments on commit 5b30aba

Please sign in to comment.