[PR #3320] [MERGED] llm: prevent race appending to slice #11118

Closed
opened 2026-04-12 23:21:41 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/3320
Author: @bmizerany
Created: 3/24/2024
Status: Merged
Merged: 3/24/2024
Merged by: @bmizerany

Base: mainHead: guardlibs


📝 Commits (1)

  • be95d41 llm: prevent race appending to slice

📊 Changes

1 file changed (+6 additions, -2 deletions)

View changed files

📝 llm/payload_common.go (+6 -2)

📄 Description

llm: prevent race appending to slice

Previously, multiple goroutines were appending to the same unguarded
slice.

Also, convert slice declaration to idiomatic zero value form.

Also, convert errgroup.Group declaration to idiomatic zero value form.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ollama/ollama/pull/3320 **Author:** [@bmizerany](https://github.com/bmizerany) **Created:** 3/24/2024 **Status:** ✅ Merged **Merged:** 3/24/2024 **Merged by:** [@bmizerany](https://github.com/bmizerany) **Base:** `main` ← **Head:** `guardlibs` --- ### 📝 Commits (1) - [`be95d41`](https://github.com/ollama/ollama/commit/be95d41847e12a0833c928bce2703193a1eb6e9c) llm: prevent race appending to slice ### 📊 Changes **1 file changed** (+6 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `llm/payload_common.go` (+6 -2) </details> ### 📄 Description llm: prevent race appending to slice Previously, multiple goroutines were appending to the same unguarded slice. Also, convert slice declaration to idiomatic zero value form. Also, convert errgroup.Group declaration to idiomatic zero value form. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-12 23:21:41 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#11118