Skip to content

Commit

Permalink
chore: fix function names in comment
Browse files Browse the repository at this point in the history
  • Loading branch information
cangqiaoyuzhuo authored Oct 28, 2024
1 parent 3373b9d commit 51d573f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion models/source_link.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ func (s *SourceLink) Link() (string, error) {
return baseURL.ResolveReference(linkPath).String(), nil
}

// GetTasksByID queries source link based on ID
// GetSourceLinkByID queries source link based on ID
func GetSourceLinkByID(id interface{}) (*SourceLink, error) {
link := &SourceLink{}
result := DB.Where("id = ?", id).First(link)
Expand Down
2 changes: 1 addition & 1 deletion routers/controllers/slave.go
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ func SlaveGetOauthCredential(c *gin.Context) {
}
}

// SlaveSelectTask 从机删除离线下载临时文件
// SlaveDeleteTempFile 从机删除离线下载临时文件
func SlaveDeleteTempFile(c *gin.Context) {
var service serializer.SlaveAria2Call
if err := c.ShouldBindJSON(&service); err == nil {
Expand Down

0 comments on commit 51d573f

Please sign in to comment.