Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for newIntSet (0.4 sec)

  1. plugin/pkg/auth/authorizer/node/graph.go

    	if edgeCount < g.destinationEdgeThreshold {
    		delete(g.destinationEdgeIndex, n.ID())
    		return
    	}
    
    	// get or create the index
    	index := g.destinationEdgeIndex[n.ID()]
    	if index == nil {
    		index = newIntSet()
    	} else {
    		index.reset()
    	}
    
    	// populate the index
    	g.graph.VisitFrom(n, func(dest graph.Node) bool {
    		if destinationEdge, ok := g.graph.EdgeBetween(n, dest).(*destinationEdge); ok {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 21:22:55 UTC 2024
    - 17.5K bytes
    - Viewed (0)
Back to top