forked from mtusi2026/mtusi2026lab3
feat:report
This commit is contained in:
@@ -63,6 +63,9 @@ func Load() Config {
|
||||
}
|
||||
|
||||
instanceID := os.Getenv("INSTANCE_ID")
|
||||
if instanceID == "" {
|
||||
instanceID = os.Getenv("HOSTNAME")
|
||||
}
|
||||
if instanceID == "" {
|
||||
instanceID = "api-" + randomShortID()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user