Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for Debugf (0.14 sec)

  1. internal/grid/connection.go

    func (c *Connection) debugMsg(d debugMsg, args ...any) {
    	if debugPrint {
    		fmt.Println("debug: sending message", d, args)
    	}
    
    	switch d {
    	case debugShutdown:
    		c.updateState(StateShutdown)
    	case debugKillInbound:
    		c.connMu.Lock()
    		defer c.connMu.Unlock()
    		if c.debugInConn != nil {
    			if debugPrint {
    				fmt.Println("debug: closing inbound connection")
    			}
    			c.debugInConn.Close()
    		}
    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