mirror of
https://github.com/getcompanion-ai/computer-host.git
synced 2026-04-16 06:02:41 +00:00
feat(contracts): add published ports, snapshot request, and storage report types
This commit is contained in:
parent
501ae2abd5
commit
26b5d2966d
20 changed files with 893 additions and 81 deletions
|
|
@ -231,7 +231,9 @@ func (c *apiClient) do(ctx context.Context, method string, endpoint string, inpu
|
|||
if err != nil {
|
||||
return fmt.Errorf("do %s %s via %q: %w", method, endpoint, c.socketPath, err)
|
||||
}
|
||||
defer response.Body.Close()
|
||||
defer func() {
|
||||
_ = response.Body.Close()
|
||||
}()
|
||||
|
||||
if response.StatusCode != wantStatus {
|
||||
return decodeFirecrackerError(method, endpoint, response)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue