Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
aduffeck committed May 2, 2022
1 parent a1b34a6 commit fd4ec56
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions extensions/search/pkg/search/provider/searchprovider.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,16 +124,14 @@ func New(gwClient gateway.GatewayAPIClient, indexClient search.IndexClient, mach
switch statRes.Status.Code {
case rpc.Code_CODE_OK:
err = p.indexClient.Add(ref, statRes.Info)
if err != nil {
p.logger.Error().Err(err).Msg("error adding updating the resource in the index")
} else {
p.logDocCount()
}
default:
p.logger.Error().Interface("statRes", statRes).Msg("failed to stat the changed resource")
}

if err != nil {
p.logger.Error().Err(err).Msg("error adding updating the resource in the index")
} else {
p.logDocCount()
}

}
}()

Expand Down

0 comments on commit fd4ec56

Please sign in to comment.