fix: nodes no longer beg to be kept alive
This commit is contained in:
parent
7c4154a459
commit
a32b0f728e
12 changed files with 146 additions and 62 deletions
|
|
@ -100,10 +100,12 @@ func request[Out any, In any](method string, host string, path types.Path, data
|
|||
return &out.Data, err
|
||||
}
|
||||
|
||||
func Get[Out any](host string, path types.Path) (*Out, error) { // TODO: out should not be a pointer
|
||||
// TODO: out should not be a pointer
|
||||
func Get[Out any](host string, path types.Path) (*Out, error) {
|
||||
return request[Out, any](http.MethodGet, host, path, nil)
|
||||
}
|
||||
|
||||
// TODO: out should not be a pointer
|
||||
func Post[Out any, In any](host string, path types.Path, data In) (*Out, error) {
|
||||
return request[Out](http.MethodPost, host, path, data)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue