You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

lock_request_builder.go 318 B

12345678910111213141516
  1. package reqbuilder
  2. import (
  3. "gitlink.org.cn/cloudream/common/pkg/distlock"
  4. mylo "gitlink.org.cn/cloudream/common/utils/lo"
  5. )
  6. type LockRequestBuilder struct {
  7. locks []distlock.Lock
  8. }
  9. func (b *LockRequestBuilder) Build() distlock.LockRequest {
  10. return distlock.LockRequest{
  11. Locks: mylo.ArrayClone(b.locks),
  12. }
  13. }

公共库

Contributors (1)