Fix compile error

This commit is contained in:
Tobias B 2021-11-18 02:36:42 +01:00
parent a81a33c17a
commit 0bb5618177
No known key found for this signature in database
GPG Key ID: 5EF4C92355A3B53D
1 changed files with 3 additions and 3 deletions

View File

@ -4,7 +4,7 @@ import (
"bytes" "bytes"
"encoding/json" "encoding/json"
"fmt" "fmt"
"github.com/superioz/aqua/internal/handler" "github.com/superioz/aqua/internal/request"
"github.com/superioz/aqua/pkg/shttp" "github.com/superioz/aqua/pkg/shttp"
"github.com/urfave/cli/v2" "github.com/urfave/cli/v2"
"io" "io"
@ -98,7 +98,7 @@ var UploadCommand = &cli.Command{
return fmt.Errorf("could not open file: %v", err) return fmt.Errorf("could not open file: %v", err)
} }
id, err := doPostRequest(host, token, file, &handler.RequestMetadata{ id, err := doPostRequest(host, token, file, &request.RequestMetadata{
Expiration: int64(expires), Expiration: int64(expires),
}) })
if err != nil { if err != nil {
@ -118,7 +118,7 @@ type postResponse struct {
Id string Id string
} }
func doPostRequest(host string, token string, file *os.File, metadata *handler.RequestMetadata) (string, error) { func doPostRequest(host string, token string, file *os.File, metadata *request.RequestMetadata) (string, error) {
md, err := json.Marshal(metadata) md, err := json.Marshal(metadata)
if err != nil { if err != nil {
return "", err return "", err