[#1689] linter: Fix staticcheck warning: 'embedded field can be simplified'
Change-Id: I8f454f7d09973cdea096495c3949b88cdd01102e Signed-off-by: Alexander Chuprov <a.chuprov@yadro.com>
This commit is contained in:
parent
923f0acf8f
commit
6f7b6b65f3
34 changed files with 121 additions and 121 deletions
|
@ -245,7 +245,7 @@ func (s *Service) startStream(ctx context.Context, cid cid.ID, treeID string,
|
|||
Parent: lm.GetParentId(),
|
||||
Child: lm.GetChildId(),
|
||||
}
|
||||
if err := m.Meta.FromBytes(lm.GetMeta()); err != nil {
|
||||
if err := m.FromBytes(lm.GetMeta()); err != nil {
|
||||
return err
|
||||
}
|
||||
select {
|
||||
|
@ -415,7 +415,7 @@ func (s *Service) syncLoop(ctx context.Context) {
|
|||
|
||||
start := time.Now()
|
||||
|
||||
cnrs, err := s.cfg.cnrSource.List(ctx)
|
||||
cnrs, err := s.cnrSource.List(ctx)
|
||||
if err != nil {
|
||||
s.log.Error(ctx, logs.TreeCouldNotFetchContainers, zap.Error(err))
|
||||
s.metrics.AddSyncDuration(time.Since(start), false)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue