mirror of
https://github.com/samuelncui/acp.git
synced 2026-01-07 11:45:15 +00:00
feat: add threads and fix log race
This commit is contained in:
12
opt.go
12
opt.go
@@ -166,12 +166,12 @@ func WithProgressBar(b bool) Option {
|
||||
}
|
||||
}
|
||||
|
||||
// func WithThreads(threads int) Option {
|
||||
// return func(o *option) *option {
|
||||
// o.threads = threads
|
||||
// return o
|
||||
// }
|
||||
// }
|
||||
func WithThreads(threads int) Option {
|
||||
return func(o *option) *option {
|
||||
o.threads = threads
|
||||
return o
|
||||
}
|
||||
}
|
||||
|
||||
func WithHash(b bool) Option {
|
||||
return func(o *option) *option {
|
||||
|
||||
Reference in New Issue
Block a user