mirror of
https://github.com/sourcegraph/sourcegraph.git
synced 2026-02-06 16:31:47 +00:00
inference: Add missing defer (#62672)
Hi. It's me, crashy mc crasher. This causes inference jobs to always return a context cancelled error. Not sure how that slipped through. Luckily, we waited with merging this change until after the release so this shouldn't affect any customers. Test plan: Verified that locally inference works again.
This commit is contained in:
parent
7308d16db9
commit
7c8d9cd74b
@ -35,7 +35,7 @@ func (s *gitService) ReadDir(ctx context.Context, repo api.RepoName, commit api.
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
it.Close()
|
||||
defer it.Close()
|
||||
|
||||
files := make([]fs.FileInfo, 0)
|
||||
for {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user