Skip to content

Commit 0683bc1

Browse files
committed
fix example
1 parent 7160177 commit 0683bc1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

table/example_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ func Example_alterTable() {
162162
options.WithSetTimeToLiveSettings(options.TimeToLiveSettings{
163163
ColumnName: "expire_at",
164164
ExpireAfterSeconds: uint32(time.Hour.Seconds()),
165-
}.WithMode(options.TimeToLiveModeValueSinceUnixEpoch).WithColumnUnit(options.TimeToLiveUnitSeconds)),
165+
}.ColumnUnitSeconds()),
166166
options.WithAddIndex("idx_series_series_id",
167167
options.WithIndexColumns("series_id"),
168168
options.WithDataColumns("title"),

0 commit comments

Comments
 (0)