test
This commit is contained in:
parent
b9bf68036a
commit
d7bbfa2f72
7
obj.go
7
obj.go
@ -968,6 +968,7 @@ func loadObjItem2() error {
|
|||||||
for _, n := range i.Names {
|
for _, n := range i.Names {
|
||||||
if id == 0 {
|
if id == 0 {
|
||||||
id = getSilentObjItemID(i.Code, ``)
|
id = getSilentObjItemID(i.Code, ``)
|
||||||
|
log.Printf("loadObjItem2[%s] : %d\n", i.Code, id)
|
||||||
if id == 0 {
|
if id == 0 {
|
||||||
id, err = addObjItem(i.Code, n, i.ItemTypeID, i.Weight, i.Exchange, i.Auction)
|
id, err = addObjItem(i.Code, n, i.ItemTypeID, i.Weight, i.Exchange, i.Auction)
|
||||||
logOnError(err, "loadObjItem2 : addObjItem")
|
logOnError(err, "loadObjItem2 : addObjItem")
|
||||||
@ -980,11 +981,11 @@ func loadObjItem2() error {
|
|||||||
log.Printf("%d items loaded.\n", len(items))
|
log.Printf("%d items loaded.\n", len(items))
|
||||||
|
|
||||||
muxObjItemId.Lock()
|
muxObjItemId.Lock()
|
||||||
log.Printf("Start loop\n")
|
log.Printf("Start loop for cached items\n")
|
||||||
for _, v := range cacheObjItemId {
|
for _, v := range cacheObjItemId {
|
||||||
log.Printf("Item : %d\n", v.ObjID64)
|
log.Printf("Item cached : %d\n", v.ObjID64)
|
||||||
for _, n := range v.Names {
|
for _, n := range v.Names {
|
||||||
log.Printf("loadObjItem2[%d] : %s : %s.\n", v.ObjID64, v.Names[0], n)
|
log.Printf("cacheObjItemId[%d] : %s : %s.\n", v.ObjID64, v.Names[0], n)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
muxObjItemId.Unlock()
|
muxObjItemId.Unlock()
|
||||||
|
Loading…
Reference in New Issue
Block a user