Skip to content

Commit

Permalink
Align to new linter protogetter
Browse files Browse the repository at this point in the history
  • Loading branch information
robertvolkmann committed Nov 6, 2023
1 parent 7f087c7 commit b905d2e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions cmd/internal/core/phone-home.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@ import (
"sync"
"time"

"google.golang.org/protobuf/types/known/timestamppb"

"github.com/metal-stack/go-lldpd/pkg/lldp"
v1 "github.com/metal-stack/metal-api/pkg/api/v1"
"google.golang.org/protobuf/types/known/timestamppb"
)

const (
Expand Down Expand Up @@ -111,7 +112,7 @@ func (c *Core) send(ctx context.Context, event *v1.EventServiceSendRequest) (*v1
return nil, err
}
if s != nil {
c.log.Info("event", "send", s.Events, "failed", s.Failed)
c.log.Info("event", "send", s.GetEvents(), "failed", s.GetFailed())
}
return s, err
}
Expand All @@ -137,7 +138,7 @@ func (c *Core) phoneHome(ctx context.Context, msgs []phoneHomeMessage) {
c.metrics.CountError("send-provisioning")
}
if s != nil {
c.log.Info("phonehome sent", "machines", s.Events)
c.log.Info("phonehome sent", "machines", s.GetEvents())
}
}

Expand Down

0 comments on commit b905d2e

Please sign in to comment.