Skip to content

Commit

Permalink
fix lint.
Browse files Browse the repository at this point in the history
  • Loading branch information
jlewi committed Oct 5, 2024
1 parent 04cecc6 commit 63e113c
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 5 deletions.
1 change: 1 addition & 0 deletions app/pkg/docs/blocks.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package docs

import (
"context"

"github.com/jlewi/foyle/protos/go/foyle/v1alpha1"
)

Expand Down
6 changes: 4 additions & 2 deletions app/pkg/docs/blocks_test.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
package docs

import (
"context"
"testing"

"github.com/google/go-cmp/cmp"
"github.com/jlewi/foyle/app/pkg/testutil"
"github.com/jlewi/foyle/protos/go/foyle/v1alpha1"
"testing"
)

func Test_CreateQuery(t *testing.T) {
Expand Down Expand Up @@ -68,7 +70,7 @@ func Test_CreateQuery(t *testing.T) {

for _, tc := range cases {
t.Run(tc.name, func(t *testing.T) {
blocks, err := CreateQuery(nil, tc.input)
blocks, err := CreateQuery(context.Background(), tc.input)
if err != nil {
t.Fatalf("CreateQuery failed: %v", err)
}
Expand Down
3 changes: 2 additions & 1 deletion app/pkg/learn/in_memory.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@ package learn

import (
"context"
"github.com/jlewi/foyle/app/pkg/docs"
"io"
"sort"
"sync"

"github.com/jlewi/foyle/app/pkg/docs"

"github.com/jlewi/foyle/app/pkg/llms"

"github.com/jlewi/monogo/files"
Expand Down
3 changes: 2 additions & 1 deletion app/pkg/learn/learner.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@ package learn
import (
"context"
"fmt"
"github.com/jlewi/foyle/app/pkg/docs"
"io"
"strings"
"sync"

"github.com/jlewi/foyle/app/pkg/docs"

"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/client_golang/prometheus/promauto"

Expand Down
1 change: 0 additions & 1 deletion app/pkg/llms/query.go
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
package llms

0 comments on commit 63e113c

Please sign in to comment.