Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
wanliqun committed Nov 21, 2024
1 parent 2daf5cf commit 454910f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions indexer/gateway/download.go
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@ func getFileInfo(ctx context.Context, root common.Hash, txSeq *uint64) (info *no

if finalInfo == nil {
finalInfo = info
continue
}

finalInfo.Finalized = finalInfo.Finalized && info.Finalized
Expand Down
3 changes: 2 additions & 1 deletion indexer/gateway/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ func newRouter() *gin.Engine {
// handlers
router.GET("/file", downloadFile)
router.GET("/file/:cid/*filePath", downloadFileInFolder)
router.GET("/status/:cid", getFileStatus)
router.GET("/file/info/:cid", getFileStatus)

Check failure on line 55 in indexer/gateway/server.go

View workflow job for this annotation

GitHub Actions / unit-test

undefined: getFileStatus

Check failure on line 55 in indexer/gateway/server.go

View workflow job for this annotation

GitHub Actions / test

undefined: getFileStatus
router.GET("/node/status", getNodeStatus)

Check failure on line 56 in indexer/gateway/server.go

View workflow job for this annotation

GitHub Actions / unit-test

undefined: getNodeStatus

Check failure on line 56 in indexer/gateway/server.go

View workflow job for this annotation

GitHub Actions / test

undefined: getNodeStatus
router.POST("/file/segment", uploadSegment)

return router
Expand Down

0 comments on commit 454910f

Please sign in to comment.