Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions go/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
"sync"

"dappco.re/go"
corelog "dappco.re/go/log"
)

const maxConcurrentEmbeddings = 8
Expand Down Expand Up @@ -89,7 +88,7 @@
}
defer func() {
if r := qdrantClient.Close(); !r.OK {
corelog.Warn("qdrant close failed", "err", r.Error())
core.Warn("qdrant close failed", "err", r.Error())

Check failure on line 91 in go/helpers.go

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Define a constant instead of duplicating this literal "qdrant close failed" 3 times.

See more on https://sonarcloud.io/project/issues?id=dAppCore_go-rag&issues=AZ3fVyoxf75UCP3fB8CN&open=AZ3fVyoxf75UCP3fB8CN&pullRequest=7
}
}()

Expand Down Expand Up @@ -121,7 +120,7 @@
}
defer func() {
if r := qdrantClient.Close(); !r.OK {
corelog.Warn("qdrant close failed", "err", r.Error())
core.Warn("qdrant close failed", "err", r.Error())
}
}()

Expand Down Expand Up @@ -150,7 +149,7 @@
}
defer func() {
if r := qdrantClient.Close(); !r.OK {
corelog.Warn("qdrant close failed", "err", r.Error())
core.Warn("qdrant close failed", "err", r.Error())
}
}()

Expand Down
Loading