Skip to content

Commit

Permalink
feat(service.url): make cache deactivation async
Browse files Browse the repository at this point in the history
  • Loading branch information
adhocore committed Mar 10, 2021
1 parent 30c6213 commit 485c6fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion service/url/admin.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ func DeleteURLByShortCode(shortCode string) error {
return common.ErrNoShortCode
}

cache.DeactivateURL(urlModel)
go cache.DeactivateURL(urlModel)

return nil
}

0 comments on commit 485c6fa

Please sign in to comment.