mirror of
https://github.com/gin-gonic/gin.git
synced 2025-12-11 19:47:00 +08:00
chore: updated routeTreesUpdated comments
This commit is contained in:
parent
0771735cd7
commit
12600156ae
3
gin.go
3
gin.go
@ -99,8 +99,7 @@ type Engine struct {
|
||||
RouterGroup
|
||||
|
||||
// routeTreesUpdated ensures that the initialization or update of the route trees
|
||||
// (used for routing HTTP requests) happens only once, even if called multiple times
|
||||
// concurrently. It helps prevent race conditions and redundant setup operations.
|
||||
// (used for routing HTTP requests) happens only once, even if called multiple times concurrently.
|
||||
routeTreesUpdated sync.Once
|
||||
|
||||
// RedirectTrailingSlash enables automatic redirection if the current route can't be matched but a
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user