From 8dc665d4a10c02cc03ab020c7d69c85a0839b311 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marko=20Tikvi=C4=87?= Date: Fri, 17 Nov 2017 13:34:14 +0100 Subject: [PATCH] Init/Reload Tables is now Init/Reload PayloadMetaData --- json_utility.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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. -- 1.8.1.2