Skip to content

Commit

Permalink
🐛 Fix trimming
Browse files Browse the repository at this point in the history
  • Loading branch information
TurboHsu committed Sep 17, 2023
1 parent cc90098 commit 3bbc577
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion cmd/sync/client/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ func trimFiles(addr string) error {
logging.HandleErr(err)

// Construct API addr
addr = "http://" + addr + "/api/get-file"
addr = "http://" + addr + "/api/get-list"

// Sends nothing to get the full list
sendFileListMsg, err := json.Marshal(structure.ListRequest{
Expand Down
2 changes: 0 additions & 2 deletions cmd/sync/server/http.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package server

import (
"fmt"
"os"
"time"

Expand Down Expand Up @@ -205,7 +204,6 @@ func listAPIHandler(c *gin.Context) {
// Find all files in local
local := utils.GetFiles(ServerCommand.Flag("path").Value.String())
local = utils.FilterValidFiles(local)
fmt.Println(local)

// Diff all the files
for _, l := range local {
Expand Down

0 comments on commit 3bbc577

Please sign in to comment.