Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
Signed-off-by: Raziel Cohen <rcohen@armosec.io>
  • Loading branch information
Raziel Cohen committed May 9, 2023
1 parent 5b1a99a commit f2c7468
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/conthandler/container_main_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (
const (
RelevantCVEsService = "RelevantCVEsService"
StepGetSBOM = "StepGetSBOM"
StepValidateSBOM = "StepValidateSBOM"
StepValidateSBOM = "StepValidateSBOM"
StepEventAggregator = "StepEventAggregator"
)

Expand Down Expand Up @@ -176,7 +176,7 @@ func (ch *ContainerHandler) startRelevancyProcess(contEvent v1.ContainerEventDat
now := time.Now()
configStopTime := config.GetConfigurationConfigContext().GetSniffingMaxTimes()
stopSniffingTime := now.Add(configStopTime)
for ;time.Now().Before(stopSniffingTime); {
for time.Now().Before(stopSniffingTime) {
go ch.getSBOM(contEvent)
ctx, span := otel.Tracer("").Start(context.GetBackgroundContext(), "container monitoring", trace.WithAttributes(attribute.String("containerID", contEvent.GetContainerID()), attribute.String("container workload", contEvent.GetK8SWorkloadID())))
err = ch.startTimer(watchedContainer, contEvent.GetContainerID())
Expand Down Expand Up @@ -229,7 +229,7 @@ func (ch *ContainerHandler) handleContainerRunningEvent(contEvent v1.ContainerEv
syncChannel: map[string]chan error{
StepGetSBOM: make(chan error, 10),
StepEventAggregator: make(chan error, 10),
StepValidateSBOM: make(chan error, 10),
StepValidateSBOM: make(chan error, 10),
},
}
ch.watchedContainers.Store(contEvent.GetContainerID(), newWatchedContainer)
Expand Down

0 comments on commit f2c7468

Please sign in to comment.