Skip to content

Commit

Permalink
fix: realtime-advanced examples (#170)
Browse files Browse the repository at this point in the history
  • Loading branch information
wlbwlbwlb authored Nov 13, 2024
1 parent 07f173e commit d09c855
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion realtime-advanced/routes.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,9 @@ func rateLimit(c *gin.Context) {
if value%200 == 0 {
fmt.Println("ip blocked")
}
c.Abort()
c.String(http.StatusServiceUnavailable, "you were automatically banned :)")
c.Abort()
return
}
}

Expand Down

0 comments on commit d09c855

Please sign in to comment.