MCPcopy Index your code
hub / github.com/CovenantSQL/CovenantSQL / newSession

Function newSession

rpc/mux/pool.go:122–129  ·  view source on GitHub ↗
(id proto.NodeID, isAnonymous bool)

Source from the content-addressed store, hash-verified

120}
121
122func newSession(id proto.NodeID, isAnonymous bool) (sess *mux.Session, err error) {
123 var conn net.Conn
124 if conn, err = rpc.DialEx(id, isAnonymous); err != nil {
125 err = errors.Wrap(err, "dialing new session connection failed")
126 return
127 }
128 return mux.Client(conn, mux.DefaultConfig())
129}
130
131func (s *Session) newSession() (sess *mux.Session, err error) {
132 return newSession(s.target, false)

Callers 3

GetExMethod · 0.85
newSessionMethod · 0.85
GetExMethod · 0.85

Calls

no outgoing calls

Tested by 1

GetExMethod · 0.68