Skip to content

Commit

Permalink
Fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
trzysiek committed Dec 20, 2024
1 parent 89a5180 commit dc40a90
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions quesma/persistence/elastic_with_eviction.go
Original file line number Diff line number Diff line change
Expand Up @@ -234,17 +234,17 @@ func (db *ElasticDatabaseWithEviction) SizeInBytesLimit() int64 {
return db.sizeInBytesLimit
}

/* TODO: restore after eviction readded, or remove
func (db *ElasticDatabaseWithEviction) getAll() (documents []*JSONWithSize, err error) {
_ = fmt.Sprintf("%s*/_search", db.indexName)
_ = fmt.Sprintf("%s/_search", db.indexName)
_ = `{
"_source": {
"excludes": "data"
},
"size": 10000,
"track_total_hits": true
}`
/*
TODO: restore after eviction readded
db.httpClient.
resp, err := db.httpClient.Request(context.Background(), "GET", elasticsearchURL, []byte(query))
Expand Down Expand Up @@ -287,10 +287,9 @@ func (db *ElasticDatabaseWithEviction) getAll() (documents []*JSONWithSize, err
fmt.Println(doc)
documents = append(documents, doc)
}
*/
return documents, nil
}
*/

func (db *ElasticDatabaseWithEviction) fullIndexName() string {
now := time.Now().UTC()
Expand Down

0 comments on commit dc40a90

Please sign in to comment.