feat: publish standalone worker
Separate worker packaging and service lifecycle from the control plane.
Этот коммит содержится в:
10
internal/webapp/cteq.go
Обычный файл
10
internal/webapp/cteq.go
Обычный файл
@@ -0,0 +1,10 @@
|
||||
package webapp
|
||||
|
||||
import "crypto/subtle"
|
||||
|
||||
// constantTimeEq is a thin wrapper around crypto/subtle.ConstantTimeCompare
|
||||
// so the middleware file does not need an extra import for a single
|
||||
// call.
|
||||
func constantTimeEq(a, b string) int {
|
||||
return subtle.ConstantTimeCompare([]byte(a), []byte(b))
|
||||
}
|
||||
Ссылка в новой задаче
Block a user