chore: rename client Listen to ConnectRPC (#11916)

ConnectRPC seems more appropriate for this function
This commit is contained in:
Spike Curtis
2024-02-01 14:44:11 +04:00
committed by GitHub
parent 1031ccb3c9
commit 1aa117b9ec
6 changed files with 16 additions and 17 deletions
+1 -1
View File
@@ -99,7 +99,7 @@ func (c *Client) Close() {
c.derpMapOnce.Do(func() { close(c.derpMapUpdates) })
}
func (c *Client) Listen(ctx context.Context) (drpc.Conn, error) {
func (c *Client) ConnectRPC(ctx context.Context) (drpc.Conn, error) {
conn, lis := drpcsdk.MemTransportPipe()
c.LastWorkspaceAgent = func() {
_ = conn.Close()