mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-10-24 23:29:18 -04:00
remove dead code
This commit is contained in:
2 files changed
+2
-14
No files matched your search
@@ -1,7 +1,6 @@
|
||||
package middleware
|
||||
|
||||
import (
|
||||
"context"
|
||||
"net/http"
|
||||
"time"
|
||||
|
||||
@@ -31,14 +30,3 @@ func AccessLog(logger log.Logger) func(http.Handler) http.Handler {
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
// ExtractRequestID extracts the request ID from the context. Since we now use the go-chi middleware to write the request
|
||||
// id, this is propagated using the context, therefore read it from there.
|
||||
func ExtractRequestID(ctx context.Context) string {
|
||||
var rid string
|
||||
if v, ok := ctx.Value(chimiddleware.RequestIDKey).(string); ok {
|
||||
rid = v
|
||||
}
|
||||
|
||||
return rid
|
||||
}
|
||||
Reference in new issue
Block a user