Skip to content

Commit

Permalink
dont show time
Browse files Browse the repository at this point in the history
  • Loading branch information
Brandon Berhent committed Aug 12, 2022
1 parent 354cfea commit 0a396fd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions apps/client/work/processor.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ func (wp *WorkProcessor) StartRequestQueueWorker() {
ch := make(chan string)

// Benchmark
startT := time.Now()
// startT := time.Now()

go func() {
result, err := wp.WorkPool.WorkGenerate(workItem)
Expand All @@ -58,9 +58,9 @@ func (wp *WorkProcessor) StartRequestQueueWorker() {
select {
case result := <-ch:
if result != "" {
endT := time.Now()
delta := endT.Sub(startT).Seconds()
fmt.Printf(" Work result: %s in %.2fs", result, delta)
// endT := time.Now()
// delta := endT.Sub(startT).Seconds()
// fmt.Printf("\nWork result: %s in %.2fs", result, delta)
// Send result back to server
clientWorkResult := serializableModels.ClientWorkResponse{
RequestID: workItem.RequestID,
Expand Down

0 comments on commit 0a396fd

Please sign in to comment.