Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for 50 (0.13 sec)

  1. internal/grid/connection.go

    					break
    				}
    				return err
    			}
    		}
    	}
    	return nil
    }
    */
    
    // shouldConnect returns a deterministic bool whether the local should initiate the connection.
    // It should be 50% chance of any host initiating the connection.
    func (c *Connection) shouldConnect() bool {
    	// The remote should have the opposite result.
    	h0 := xxh3.HashString(c.Local + c.Remote)
    	h1 := xxh3.HashString(c.Remote + c.Local)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 42.6K bytes
    - Viewed (0)
Back to top