Skip to content

Commit 1c7fef0

Browse files
author
Andrew Brookins
committed
Docs
1 parent 657ee47 commit 1c7fef0

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

app/main.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -146,11 +146,13 @@ async def bitcoin(background_tasks: BackgroundTasks, keys: Keys = Depends(make_k
146146
@app.on_event('startup')
147147
async def startup_event():
148148
keys = Keys()
149-
# When we create our timeseries, we'll use the "first" duplicate policy,
150-
# which ignores duplicate pairs of timestamp and values if we add them.
149+
# When we create our timeseries, we'll use the duplicate policy
150+
# known as "first," which ignores duplicate pairs of timestamp and
151+
# values if we add them.
151152
#
152-
# Because of this, we don't worry about handling this logic ourselves --
153-
# but note that there is a performance cost to writes using this policy.
153+
# Because of this, we don't worry about handling this logic
154+
# ourselves -- but note that there is a performance cost to writes
155+
# using this policy.
154156
try:
155157
await redis.execute_command(
156158
'TS.CREATE', keys.timeseries_sentiment_key(),

0 commit comments

Comments
 (0)