Skip to content

Commit

Permalink
feat: remove unmarshal
Browse files Browse the repository at this point in the history
  • Loading branch information
mohamadch91 committed Dec 21, 2024
1 parent 2e07aa5 commit 222f2f6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion pkg/describer/worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ func Do(ctx context.Context,
if err != nil {
return nil, fmt.Errorf("decrypt error: %w", err)
}
logger.Info("decrypted config", zap.Any("config", config))
// logger.Info("decrypted config", zap.Any("config", config))

return doDescribe(ctx, logger, job, config, grpcEndpoint, ingestionPipelineEndpoint, describeDeliverToken, useOpenSearch)
}
Expand Down
10 changes: 5 additions & 5 deletions provider/describer/repository.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,16 +101,16 @@ func GetRepositoryListWithOptions(
}

// Marshal the entire repo object back into JSON for Description
rawData, err := json.Marshal(r)
if err != nil {
return nil, fmt.Errorf("error marshalling repo data: %w", err)
}
// rawData, err := json.Marshal(r)
// if err != nil {
// return nil, fmt.Errorf("error marshalling repo data: %w", err)
// }

resource := models.Resource{
ID: idStr,
Name: nameStr,
Description: JSONAllFieldsMarshaller{
Value: rawData,
Value: r,
},
}

Expand Down

0 comments on commit 222f2f6

Please sign in to comment.