From 54657bf2722e1e604d47b86394154fb277bcc715 Mon Sep 17 00:00:00 2001 From: Radu Ioan Fericean Date: Wed, 15 Aug 2012 17:21:34 +0300 Subject: [PATCH] corrected compilation error --- timespans/action_timing.go | 6 +++++- timespans/storage_postgres.go | 5 +++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/timespans/action_timing.go b/timespans/action_timing.go index bf75c7061..73028db66 100644 --- a/timespans/action_timing.go +++ b/timespans/action_timing.go @@ -287,7 +287,11 @@ func (at *ActionTiming) store() (result string) { result += ubi + "," } result = strings.TrimRight(result, ",") + "|" - result += at.Timing.store() + "|" + if at.Timing != nil { + result += at.Timing.store() + "|" + } else { + result += " |" + } result += strconv.FormatFloat(at.Weight, 'f', -1, 64) + "|" result += at.ActionsId return diff --git a/timespans/storage_postgres.go b/timespans/storage_postgres.go index 3e62250f1..8b35befb4 100644 --- a/timespans/storage_postgres.go +++ b/timespans/storage_postgres.go @@ -100,3 +100,8 @@ func (psl *PostgresStorage) GetCallCostLog(uuid string) (cc *CallCost, err error err = json.Unmarshal([]byte(timespansJson), cc.Timespans) return } + +func (psl *PostgresStorage) LogActionTrigger(ubId string, at *ActionTrigger, as []*Action) (err error) { + return +} +func (psl *PostgresStorage) LogActionTiming(at *ActionTiming, as []*Action) (err error) { return }