diff --git a/json_utility.go b/json_utility.go index 184d8a2..9d6f4ea 100644 --- a/json_utility.go +++ b/json_utility.go @@ -49,7 +49,7 @@ type Payload struct { // InitTables loads all payloads in the payloads variable. // Returns an error if it fails. -func InitTables(db *ora.Ses, project string) error { +func InitPayloads(db *ora.Ses, project string) error { jsonbuf, err := fetchJSON(db, project) if err != nil { return err @@ -66,9 +66,9 @@ func InitTables(db *ora.Ses, project string) error { // ReloadTables reloads all payloads in the payloads variable. // Returns an error if it fails. -func ReloadTables(db *ora.Ses, project string) error { +func ReloadPayloads(db *ora.Ses, project string) error { payloads = make([]Payload, 0) - return InitTables(db, project) + return InitPayloads(db, project) } // DecodeJSON decodes JSON data from r to v.