Fix import

This commit is contained in:
David Dworken 2024-08-25 18:07:16 -07:00
parent 6604c63b26
commit 6aaf1cbe70
No known key found for this signature in database
2 changed files with 2 additions and 1 deletions

View File

@ -22,6 +22,7 @@ import (
"github.com/google/uuid"
"github.com/spf13/cobra"
"gorm.io/gorm"
)
var (

View File

@ -811,7 +811,7 @@ func SearchWithOffset(ctx context.Context, db *gorm.DB, query string, limit, off
const SEARCH_RETRY_COUNT = 3
func retryingSearch(ctx context.Context, db *gorm.DB, query string, limit, offset int, currentRetryNum int) ([]*data.HistoryEntry, error) {
func retryingSearch(ctx context.Context, db *gorm.DB, query string, limit, offset, currentRetryNum int) ([]*data.HistoryEntry, error) {
if ctx == nil && query != "" {
return nil, fmt.Errorf("lib.Search called with a nil context and a non-empty query (this should never happen)")
}