From fb8566c3982db790ef0054bc291115487568136c Mon Sep 17 00:00:00 2001 From: David Reiss Date: Tue, 16 Jan 2024 12:44:35 -0800 Subject: [PATCH] Replace some Sprintfs with string concatenation --- internal/internal_workflow.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/internal_workflow.go b/internal/internal_workflow.go index 26cc8d177..c1253c6a8 100644 --- a/internal/internal_workflow.go +++ b/internal/internal_workflow.go @@ -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") } } @@ -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") } } @@ -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") } }