Skip to content

Commit

Permalink
auto flush
Browse files Browse the repository at this point in the history
  • Loading branch information
Geapefurit committed Jan 30, 2024
1 parent cb6a2ae commit 82b342d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nft-meta/pkg/milvusdb/collections.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ func initCollections(ctx context.Context, c client.Client) error {

func autoFlush() {
lockKey := "milvus_flush_lock"
refreshTimeout := time.Minute * 10
refreshTimeout := time.Hour
for {
<-time.NewTicker(refreshTimeout).C
locked, err := ctredis.TryPubLock(lockKey, refreshTimeout)
Expand Down

0 comments on commit 82b342d

Please sign in to comment.