mirror of
https://github.com/photoprism/photoprism.git
synced 2025-12-12 00:34:13 +01:00
refactor: use b.Loop() to simplify the code and improve performance
Signed-off-by: promalert <promalert@outlook.com>
This commit is contained in:
@@ -166,7 +166,7 @@ func TestIsJoinToken(t *testing.T) {
|
||||
}
|
||||
|
||||
func BenchmarkJoinToken(b *testing.B) {
|
||||
for n := 0; n < b.N; n++ {
|
||||
for b.Loop() {
|
||||
JoinToken()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user