Skip to content

Commit

Permalink
[server]Use regular go context in repo
Browse files Browse the repository at this point in the history
  • Loading branch information
ua741 committed Jul 22, 2024
1 parent c5731e8 commit f35d277
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions server/pkg/repo/embedding/repository.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import (
"fmt"
"github.com/ente-io/museum/ente"
"github.com/ente-io/stacktrace"
"github.com/gin-gonic/gin"
"github.com/lib/pq"
"github.com/sirupsen/logrus"
)
Expand Down Expand Up @@ -177,7 +176,7 @@ func (r *Repository) AddNewDC(ctx context.Context, fileID int64, model ente.Mode
return nil
}

func (r *Repository) GetIndexedFiles(ctx *gin.Context, id int64, model ente.Model, since int64, limit *int64) ([]ente.IndexedFile, error) {
func (r *Repository) GetIndexedFiles(ctx context.Context, id int64, model ente.Model, since int64, limit *int64) ([]ente.IndexedFile, error) {
var rows *sql.Rows
var err error
if limit == nil {
Expand Down

0 comments on commit f35d277

Please sign in to comment.