Skip to content

Commit

Permalink
Replace some Sprintfs with string concatenation
Browse files Browse the repository at this point in the history
  • Loading branch information
dnr committed Jan 16, 2024
1 parent 41d2288 commit fb8566c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/internal_workflow.go
Original file line number Diff line number Diff line change
Expand Up @@ -751,7 +751,7 @@ func (c *channelImpl) Receive(ctx Context, valuePtr interface{}) (more bool) {
}
break // Corrupt signal. Drop and reset process.
}
state.yield(fmt.Sprintf("blocked on %s.Receive", c.name))
state.yield("blocked on " + c.name + ".Receive")
}
}

Expand Down Expand Up @@ -887,7 +887,7 @@ func (c *channelImpl) Send(ctx Context, v interface{}) {
if c.closed {
panic("Closed channel")
}
state.yield(fmt.Sprintf("blocked on %s.Send", c.name))
state.yield("blocked on " + c.name + ".Send")
}
}

Expand Down Expand Up @@ -1365,7 +1365,7 @@ func (s *selectorImpl) Select(ctx Context) {
state.unblocked()
return
}
state.yield(fmt.Sprintf("blocked on %s.Select", s.name))
state.yield("blocked on " + s.name + ".Select")
}
}

Expand Down

0 comments on commit fb8566c

Please sign in to comment.