enhance(config):配置雪花ID生成算法增加主机编号配置。
This commit is contained in:
parent
1ccd19d78b
commit
83b0cd89f4
|
@ -33,6 +33,7 @@ type ServiceSetting struct {
|
||||||
MaxSessionLife time.Duration
|
MaxSessionLife time.Duration
|
||||||
ItemsPageSize int
|
ItemsPageSize int
|
||||||
CacheLifeTime time.Duration
|
CacheLifeTime time.Duration
|
||||||
|
HostSerial int64
|
||||||
}
|
}
|
||||||
|
|
||||||
// 定义全局变量
|
// 定义全局变量
|
||||||
|
|
|
@ -20,3 +20,4 @@ Service:
|
||||||
MaxSessionLife: 2h
|
MaxSessionLife: 2h
|
||||||
ItemsPageSize: 20
|
ItemsPageSize: 20
|
||||||
CacheLifeTime: 5m
|
CacheLifeTime: 5m
|
||||||
|
HostSerial: 5
|
||||||
|
|
Loading…
Reference in New Issue
Block a user