Skip to content

Commit

Permalink
Fix minors
Browse files Browse the repository at this point in the history
Signed-off-by: Jaehyun Nam <[email protected]>
  • Loading branch information
nam-jaehyun committed May 10, 2024
1 parent 16afeaa commit b4675ea
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions sentryflow/processor/apiClassifier.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,17 +61,19 @@ func StartAPIClassifier(wg *sync.WaitGroup) bool {
return false
}

// Start serving gRPC server
log.Printf("[AI] Successfully connected to %s for APIMetrics", AIEngineService)
log.Printf("[AI] Connecting to %s for APIMetrics", AIEngineService)

client := protobuf.NewAPIClassificationClient(conn)

// Start serving gRPC server
aiStream, err := client.ClassifyAPIs(context.Background())
if err != nil {
log.Fatalf("[AI] Could not make stream: %v", err)
return false
}

log.Printf("[AI] Successfully connected to %s for APIMetrics", AIEngineService)

AH.AIStream = &streamInform{
AIStream: aiStream,
}
Expand Down

0 comments on commit b4675ea

Please sign in to comment.