Commit f7ded7c

mo khan <mo@mokhan.ca>
2025-05-06 20:56:57
refactor: use Factory[T] type
1 parent 0fa2621
Changed files (1)
pkg
crypt
pkg/crypt/hmac.go
@@ -9,7 +9,7 @@ import (
 
 type HMACSigner struct {
 	key     []byte
-	factory func() hash.Hash
+	factory x.Factory[hash.Hash]
 }
 
 func WithAlgorithm(factory x.Factory[hash.Hash]) x.Option[*HMACSigner] {