Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
notifications-bot
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
archives
notifications-bot
Commits
1f13c25c
Commit
1f13c25c
authored
Apr 21, 2021
by
Jonah Husson
Browse files
Options
Downloads
Patches
Plain Diff
don't try to thread initial creation of ephemerals
parent
e58f6f86
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
notifications/ephemeral.go
+2
-2
2 additions, 2 deletions
notifications/ephemeral.go
with
2 additions
and
2 deletions
notifications/ephemeral.go
+
2
−
2
View file @
1f13c25c
...
...
@@ -44,7 +44,7 @@ func (nb *Impl) initCreator() {
// Add all missed ephemeral IDs
// increment by offsetPhase up to 5 minutes from now making ephemerals
for
endTime
:=
time
.
Now
()
.
Add
(
creationLead
);
lastEpochTime
.
Before
(
endTime
);
lastEpochTime
=
lastEpochTime
.
Add
(
time
.
Duration
(
offsetPhase
))
{
go
nb
.
addEphemerals
(
lastEpochTime
)
nb
.
addEphemerals
(
lastEpochTime
)
}
// handle the next epoch
_
,
epoch
:=
ephemeral
.
HandleQuantization
(
lastEpochTime
)
...
...
@@ -85,6 +85,6 @@ func (nb *Impl) deleteEphemerals(start time.Time) {
_
,
currentEpoch
:=
ephemeral
.
HandleQuantization
(
start
)
err
:=
nb
.
Storage
.
DeleteOldEphemerals
(
currentEpoch
)
if
err
!=
nil
{
jww
.
WARN
.
Printf
(
"failed to
upda
te ephemerals: %+v"
,
err
)
jww
.
WARN
.
Printf
(
"failed to
dele
te ephemerals: %+v"
,
err
)
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment