Skip to content

Fix temporal problems in bad block cache#535

Merged
magik6k merged 2 commits intomasterfrom
fix/temporal-problems
Nov 8, 2019
Merged

Fix temporal problems in bad block cache#535
magik6k merged 2 commits intomasterfrom
fix/temporal-problems

Conversation

@Kubuxu
Copy link
Copy Markdown
Contributor

@Kubuxu Kubuxu commented Nov 6, 2019

License: MIT

License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
Comment thread chain/sync.go Outdated
for _, b := range fts.Blocks {
if err := syncer.ValidateBlock(ctx, b); err != nil {
syncer.bad.Add(b.Cid())
if !errors.Is(err, ErrTemporal) {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One nitpick would be to have an IsPermanent function that calls this internally. Just to make the logic a little more readable

Copy link
Copy Markdown
Member

@whyrusleeping whyrusleeping left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One small nitpick, but otherwise +1

License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
@magik6k magik6k merged commit d664e90 into master Nov 8, 2019
@magik6k magik6k deleted the fix/temporal-problems branch November 8, 2019 11:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants