Browse Source

EC的PacketSize保存到备份方式的配置中

pull/9/head
Sydonian 2 years ago
parent
commit
d7fb6d6d10
1 changed files with 5 additions and 3 deletions
  1. +5
    -3
      models/models.go

+ 5
- 3
models/models.go View File

@@ -31,12 +31,14 @@ func NewRepRedundancyInfo(repCount int) RepRedundancyInfo {
}

type ECRedundancyInfo struct {
ECName string `json:"ecName"`
ECName string `json:"ecName"`
PacketSize int64 `json:"packetSize"`
}

func NewECRedundancyInfo(ecName string) ECRedundancyInfo {
func NewECRedundancyInfo(ecName string, packetSize int64) ECRedundancyInfo {
return ECRedundancyInfo{
ECName: ecName,
ECName: ecName,
PacketSize: packetSize,
}
}



Loading…
Cancel
Save