File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -146,11 +146,13 @@ async def bitcoin(background_tasks: BackgroundTasks, keys: Keys = Depends(make_k
146
146
@app .on_event ('startup' )
147
147
async def startup_event ():
148
148
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.
151
152
#
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.
154
156
try :
155
157
await redis .execute_command (
156
158
'TS.CREATE' , keys .timeseries_sentiment_key (),
You can’t perform that action at this time.
0 commit comments