Skip to content

Commit 5502158

Browse files
committed
[auth] cleanup
1 parent cbc8f35 commit 5502158

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

internal/sms-gateway/modules/auth/service.go

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ import (
1212
"github.com/android-sms-gateway/server/internal/sms-gateway/online"
1313
"github.com/android-sms-gateway/server/internal/sms-gateway/users"
1414
"github.com/capcom6/go-helpers/cache"
15-
"github.com/jaevor/go-nanoid"
1615
"go.uber.org/zap"
1716
)
1817

@@ -31,8 +30,6 @@ type Service struct {
3130
logger *zap.Logger
3231

3332
codesCache *cache.Cache[string]
34-
35-
idgen func() string
3633
}
3734

3835
func New(
@@ -42,8 +39,6 @@ func New(
4239
onlineSvc online.Service,
4340
logger *zap.Logger,
4441
) *Service {
45-
idgen, _ := nanoid.Standard(21)
46-
4742
return &Service{
4843
config: config,
4944

@@ -54,8 +49,6 @@ func New(
5449
logger: logger,
5550

5651
codesCache: cache.New[string](cache.Config{}),
57-
58-
idgen: idgen,
5952
}
6053
}
6154

0 commit comments

Comments
 (0)