mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-21 15:05:01 +00:00
fix comment
This commit is contained in:
@@ -26,7 +26,7 @@ func EnrichPost(ctx context.Context, post *pb.Post) error {
|
|||||||
score := model.Analyze(post.Title)
|
score := model.Analyze(post.Title)
|
||||||
post.Metadata["sentiment"] = fmt.Sprintf("%.1f", score)
|
post.Metadata["sentiment"] = fmt.Sprintf("%.1f", score)
|
||||||
|
|
||||||
logger.Info("Setting score %.1f for post %v", score, post.Title)
|
logger.Infof("Setting score %.1f for post %v", score, post.Title)
|
||||||
|
|
||||||
// now save the post
|
// now save the post
|
||||||
PostsClient.Save(ctx, &pb.SaveRequest{
|
PostsClient.Save(ctx, &pb.SaveRequest{
|
||||||
|
|||||||
Reference in New Issue
Block a user