pkg/controlplane/main.go
Function Main
has 5 return statements (exceeds 4 allowed). Open
Open
func Main(ctx context.Context, filename string, port uint, logger *log.Logger) error {
snapshotCache := cache.NewSnapshotCache(false, cache.IDHash{}, logger)
proc := NewProcessor(snapshotCache, logger)
errChan := make(chan error, 2)