Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use new usable hosts endpoint #1647

Open
wants to merge 15 commits into
base: dev
Choose a base branch
from
Open

Use new usable hosts endpoint #1647

wants to merge 15 commits into from

Conversation

peterjan
Copy link
Member

@peterjan peterjan commented Nov 1, 2024

No description provided.

case api.EventSettingUpdate:
log = log.With("gouging", e.GougingSettings != nil, "pinned", e.PinnedSettings != nil, "upload", e.UploadSettings != nil, "ts", e.Timestamp)
c.handleSettingUpdate(e)
c.cache.Invalidate(cacheKeyUsableHosts)
Copy link
Member Author

Choose a reason for hiding this comment

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

Took a bit of a shortcut here because we're going to drastically overhaul the cache anway.

@peterjan peterjan self-assigned this Nov 4, 2024
@peterjan peterjan marked this pull request as ready for review November 4, 2024 15:16
Base automatically changed from pj/usable-hosts to dev November 8, 2024 11:16
api/events.go Outdated Show resolved Hide resolved
Copy link
Member

@ChrisSchinnerl ChrisSchinnerl left a comment

Choose a reason for hiding this comment

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

Looking good but got some conflicts now

if err != nil && !utils.IsErr(err, api.ErrSlabNotFound) {
var objects []api.ObjectMetadata
if res, err := w.bus.Objects(ctx, "", api.ListObjectOptions{SlabEncryptionKey: slab.EncryptionKey}); err != nil {
w.logger.Errorf("failed to list objects for slab key; %w", err)
w.logger.Error("failed to list objects for slab key; %v", err)
Copy link
Member

Choose a reason for hiding this comment

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

Using Error with %v as a formatting directive.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: In Review
Development

Successfully merging this pull request may close these issues.

2 participants