Skip to content

Commit b2b3dd2

Browse files
committed
fix: CR
1 parent 3578e8b commit b2b3dd2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/ttl/series.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -268,10 +268,10 @@ func createTables(ctx context.Context, c table.Client, prefix string) (err error
268268
}
269269

270270
for i := 0; i < expirationQueueCount; i++ {
271-
i := i
271+
tableName := path.Join(prefix, fmt.Sprintf("expiration_queue_%v", i))
272272
err = c.Do(ctx,
273273
func(ctx context.Context, s table.Session) error {
274-
return s.CreateTable(ctx, path.Join(prefix, fmt.Sprintf("expiration_queue_%v", i)),
274+
return s.CreateTable(ctx, tableName,
275275
options.WithColumn("doc_id", types.Optional(types.TypeUint64)),
276276
options.WithColumn("ts", types.Optional(types.TypeUint64)),
277277
options.WithPrimaryKeyColumn("ts", "doc_id"),

0 commit comments

Comments
 (0)