diff --git a/agent/internal/config/config.go b/agent/internal/config/config.go index 8557bd5..48bc5fb 100644 --- a/agent/internal/config/config.go +++ b/agent/internal/config/config.go @@ -13,16 +13,15 @@ import ( ) type Config struct { - ID int64 `json:"id"` - Local stgmodels.LocalMachineInfo `json:"local"` - GRPC *grpc.Config `json:"grpc"` - TempFileLifetime int `json:"tempFileLifetime"` // temp状态的副本最多能保持多久时间,单位:秒 - Logger log.Config `json:"logger"` - RabbitMQ stgmq.Config `json:"rabbitMQ"` - IPFS ipfs.Config `json:"ipfs"` - DistLock distlock.Config `json:"distlock"` - Connectivity connectivity.Config `json:"connectivity"` - Downloader downloader.Config `json:"downloader"` + ID int64 `json:"id"` + Local stgmodels.LocalMachineInfo `json:"local"` + GRPC *grpc.Config `json:"grpc"` + Logger log.Config `json:"logger"` + RabbitMQ stgmq.Config `json:"rabbitMQ"` + IPFS ipfs.Config `json:"ipfs"` + DistLock distlock.Config `json:"distlock"` + Connectivity connectivity.Config `json:"connectivity"` + Downloader downloader.Config `json:"downloader"` } var cfg Config diff --git a/common/assets/confs/agent.config.json b/common/assets/confs/agent.config.json index 867b619..61c323f 100644 --- a/common/assets/confs/agent.config.json +++ b/common/assets/confs/agent.config.json @@ -3,13 +3,13 @@ "local": { "nodeID": 1, "localIP": "127.0.0.1", - "externalIP": "127.0.0.1" + "externalIP": "127.0.0.1", + "locationID": 1 }, "grpc": { "ip": "127.0.0.1", "port": 5010 }, - "tempFileLifetime": 3600, "logger": { "output": "file", "outputFileName": "agent",