Skip to content

Commit

Permalink
run update in background
Browse files Browse the repository at this point in the history
  • Loading branch information
leonlatsch committed May 8, 2024
1 parent c107923 commit a82eb97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ func (self *Server) StartApiServer() {

router.GET("/update", func(ctx *gin.Context) {
ip := ctx.Query("ip")
self.Service.UpdateDns(ip)
go self.Service.UpdateDns(ip)
ctx.Status(200)
})

Expand Down

0 comments on commit a82eb97

Please sign in to comment.