Skip to content

Commit

Permalink
Using projectOutputBuffers to check for jobID instead of receiverBuff…
Browse files Browse the repository at this point in the history
…ers (#181)
  • Loading branch information
Aayyush authored Feb 4, 2022
1 parent fa3ebfc commit 8e9bda2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions server/handlers/project_command_output_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,9 @@ func NewAsyncProjectCommandOutputHandler(
}

func (p *AsyncProjectCommandOutputHandler) IsKeyExists(key string) bool {
p.receiverBuffersLock.RLock()
defer p.receiverBuffersLock.RUnlock()
_, ok := p.receiverBuffers[key]
p.projectOutputBuffersLock.RLock()
defer p.projectOutputBuffersLock.RUnlock()
_, ok := p.projectOutputBuffers[key]
return ok
}

Expand Down

0 comments on commit 8e9bda2

Please sign in to comment.