fix(files): refactor upload mgr as upload info store
This commit is contained in:
parent
4e63a57cf9
commit
044cdea1d4
5 changed files with 131 additions and 10 deletions
|
@ -11,6 +11,7 @@ import (
|
|||
"time"
|
||||
|
||||
"github.com/ihexxa/quickshare/src/client"
|
||||
"github.com/ihexxa/quickshare/src/db/fileinfostore"
|
||||
q "github.com/ihexxa/quickshare/src/handlers"
|
||||
"github.com/ihexxa/quickshare/src/handlers/fileshdr"
|
||||
)
|
||||
|
@ -630,7 +631,7 @@ func TestFileHandlers(t *testing.T) {
|
|||
t.Fatal(res.StatusCode)
|
||||
}
|
||||
|
||||
gotInfos := map[string]*fileshdr.UploadInfo{}
|
||||
gotInfos := map[string]*fileinfostore.UploadInfo{}
|
||||
for _, info := range lResp.UploadInfos {
|
||||
gotInfos[info.RealFilePath] = info
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue