add comments

This commit is contained in:
MaysWind
2020-12-26 00:15:05 +08:00
parent 823ed89612
commit 922582d60d
5 changed files with 6 additions and 0 deletions
+1
View File
@@ -8,6 +8,7 @@ import (
const requestIdHeader = "X-Request-ID"
// RequestId generates a new request id and add it to context and response header
func RequestId(config *settings.Config) core.MiddlewareHandlerFunc {
return func(c *core.Context) {
if requestid.Container.Current == nil {