mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-12-18 20:57:49 +08:00
14 lines
262 B
Go
14 lines
262 B
Go
|
package filer_pb
|
||
|
|
||
|
func (r *CreateEntryRequest) AddSignature(sig int32) {
|
||
|
r.Signatures = append(r.Signatures, sig)
|
||
|
}
|
||
|
func (r *CreateEntryRequest) HasSigned(sig int32) bool {
|
||
|
for _, s := range r.Signatures {
|
||
|
if s == sig {
|
||
|
return true
|
||
|
}
|
||
|
}
|
||
|
return false
|
||
|
}
|