(ctx context.Context)
| 99 | } |
| 100 | |
| 101 | func GetRpcResponseHandlerFromContext(ctx context.Context) *RpcResponseHandler { |
| 102 | rtn := ctx.Value(wshRpcRespHandlerContextKey{}) |
| 103 | if rtn == nil { |
| 104 | return nil |
| 105 | } |
| 106 | return rtn.(*RpcResponseHandler) |
| 107 | } |
| 108 | |
| 109 | func (w *WshRpc) GetPeerInfo() string { |
| 110 | return w.DebugName |
no test coverage detected