func testConnection(conn *nats.Conn) error { if conn == nil { return fmt.Errorf("natsproxy: Connection cannot be nil") } if conn.Status() != nats.CONNECTED { return ErrNatsClientNotConnected } return nil }
func testConnection(conn *nats.Conn) error { if conn == nil { return fmt.Errorf("natsproxy: Connection cannot be nil") } if conn.Status() != nats.CONNECTED { return ErrNatsClientNotConnected } return nil }