style: gofmt + fix errcheck lint warning
All checks were successful
CI / Test (push) Successful in 3m2s
CI / Lint (push) Successful in 3m7s
CI / Release (push) Successful in 1m55s
CI / Notify Downstream (stt-module) (push) Successful in 1s
CI / Notify Downstream (voice-assistant) (push) Successful in 1s
CI / Notify (push) Successful in 2s
CI / Notify Downstream (chat-handler) (push) Successful in 1s
CI / Notify Downstream (pipeline-bridge) (push) Successful in 1s
CI / Notify Downstream (tts-module) (push) Successful in 1s
All checks were successful
CI / Test (push) Successful in 3m2s
CI / Lint (push) Successful in 3m7s
CI / Release (push) Successful in 1m55s
CI / Notify Downstream (stt-module) (push) Successful in 1s
CI / Notify Downstream (voice-assistant) (push) Successful in 1s
CI / Notify (push) Successful in 2s
CI / Notify Downstream (chat-handler) (push) Successful in 1s
CI / Notify Downstream (pipeline-bridge) (push) Successful in 1s
CI / Notify Downstream (tts-module) (push) Successful in 1s
This commit is contained in:
@@ -563,7 +563,7 @@ func TestLLMClient_StreamGenerateManyTokens(t *testing.T) {
|
|||||||
var order []int
|
var order []int
|
||||||
result, err := c.StreamGenerate(context.Background(), "q", "", "", func(tok string) {
|
result, err := c.StreamGenerate(context.Background(), "q", "", "", func(tok string) {
|
||||||
var idx int
|
var idx int
|
||||||
fmt.Sscanf(tok, "t%d ", &idx)
|
_, _ = fmt.Sscanf(tok, "t%d ", &idx)
|
||||||
mu.Lock()
|
mu.Lock()
|
||||||
order = append(order, idx)
|
order = append(order, idx)
|
||||||
mu.Unlock()
|
mu.Unlock()
|
||||||
|
|||||||
Reference in New Issue
Block a user