diff --git a/obj.go b/obj.go index 0a783ab..009314a 100644 --- a/obj.go +++ b/obj.go @@ -29,6 +29,12 @@ var ( func initCache() { var err error + err = loadObjType() + logOnError(err, "initCache : caching obj_type") + + err = loadObjSubType() + logOnError(err, "initCache : caching obj_sub_type") + resetMsgParsingRules() msgParsingRules, err = loadMsgParsingRules() logOnError(err, "initCache : message parsing rules") @@ -48,12 +54,6 @@ func initCache() { err = loadObjMsg() logOnError(err, "initCache : caching msgs") - err = loadObjType() - logOnError(err, "initCache : caching obj_type") - - err = loadObjSubType() - logOnError(err, "initCache : caching obj_sub_type") - } func loadObjType() error {