rename TXID to SIGNID

This commit is contained in:
bryanqiu 2022-12-02 14:16:36 +08:00
parent d13a1e4292
commit 79e49306ef

View File

@ -27,8 +27,8 @@ type typeInfo struct {
var table string = "t_uid" // id range table name
var typeSupported = map[string]typeInfo{
"TXID": typeInfo{
Name: "TXID",
"SIGNID": typeInfo{
Name: "SIGNID",
RangeLength: 3,
},
"USERID": typeInfo{
@ -76,6 +76,7 @@ func CreateIdRange(db *gorm.DB, typ, prefix string) (start int64, length int, er
}
selfid = "TODO"
)
log.Infof("start CreateIdRange...")
// Step 2. get lastid && lock root(type+prefix)
var tx = db.Begin()