diff options
Diffstat (limited to 'forged/internal/ipc/git2c/client.go')
-rw-r--r-- | forged/internal/ipc/git2c/client.go | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/forged/internal/ipc/git2c/client.go b/forged/internal/ipc/git2c/client.go index 8b11035..79c2024 100644 --- a/forged/internal/ipc/git2c/client.go +++ b/forged/internal/ipc/git2c/client.go @@ -11,7 +11,6 @@ import ( "go.lindenii.runxiyu.org/forge/forged/internal/common/bare" ) -// Client represents a connection to the git2d backend daemon. type Client struct { socketPath string conn net.Conn @@ -19,7 +18,6 @@ type Client struct { reader *bare.Reader } -// NewClient establishes a connection to a git2d socket and returns a new Client. func NewClient(ctx context.Context, socketPath string) (*Client, error) { dialer := &net.Dialer{} //exhaustruct:ignore conn, err := dialer.DialContext(ctx, "unix", socketPath) @@ -38,7 +36,6 @@ func NewClient(ctx context.Context, socketPath string) (*Client, error) { }, nil } -// Close terminates the underlying socket connection. func (c *Client) Close() (err error) { if c.conn != nil { err = c.conn.Close() |