Skip to content

Commit

Permalink
Merge pull request #3 from JuliaData/td-small-tweaks
Browse files Browse the repository at this point in the history
Small tweaks
  • Loading branch information
Drvi committed Jul 2, 2023
2 parents bd42df2 + 38928f3 commit 1ba9eee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/TaskCounters.jl
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ function dec!(t::TaskCounter, n::Int=1)
Base.@lock t begin
@assert t.n >= n "Trying decrement a `TaskCounter` past zero, `$(t.n)` -> `$(t.n - n)`"
t.n -= n
notify(t.cond)
(t.n == 0) && notify(t.cond)
end
return nothing
end
Expand Down
2 changes: 1 addition & 1 deletion src/payload.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#

# What we send to the consume! method
struct ParsedPayload{B<:AbstractResultBuffer, C<:AbstractParsingContext}
struct ParsedPayload{B, C<:AbstractParsingContext}
row_num::Int
len::Int
results::B
Expand Down

0 comments on commit 1ba9eee

Please sign in to comment.