diff --git a/apier/v1/apier.go b/apier/v1/apier.go index 87ba8e175..88bcbcf4d 100644 --- a/apier/v1/apier.go +++ b/apier/v1/apier.go @@ -69,7 +69,7 @@ type AttrRemoveDestination struct { } func (self *ApierV1) RemoveDestination(attr AttrRemoveDestination, reply *string) error { - + return nil } func (apier *ApierV1) GetSharedGroup(sgId string, reply *engine.SharedGroup) error { diff --git a/engine/storage_map.go b/engine/storage_map.go index 6b8ebc6bc..dfd961abc 100644 --- a/engine/storage_map.go +++ b/engine/storage_map.go @@ -441,6 +441,10 @@ func (ms *MapStorage) SetDestination(dest *Destination) (err error) { return } +func (ms *MapStorage) RemoveDestination(destID string) (err error) { + return +} + func (ms *MapStorage) GetActions(key string, skipCache bool) (as Actions, err error) { ms.mu.RLock() defer ms.mu.RUnlock() diff --git a/engine/storage_mongo_datadb.go b/engine/storage_mongo_datadb.go index ae6779919..cf2da1f0e 100644 --- a/engine/storage_mongo_datadb.go +++ b/engine/storage_mongo_datadb.go @@ -888,6 +888,10 @@ func (ms *MongoStorage) SetDestination(dest *Destination) (err error) { return } +func (ms *MongoStorage) RemoveDestination(destID string) (err error) { + return +} + func (ms *MongoStorage) GetActions(key string, skipCache bool) (as Actions, err error) { if !skipCache { if x, err := cache2go.Get(utils.ACTION_PREFIX + key); err == nil { diff --git a/engine/storage_redis.go b/engine/storage_redis.go index 553a90105..fba52118d 100644 --- a/engine/storage_redis.go +++ b/engine/storage_redis.go @@ -568,7 +568,7 @@ func (rs *RedisStorage) SetDestination(dest *Destination) (err error) { } func (rs *RedisStorage) RemoveDestination(destID string) (err error) { - conn, err := rs.db.Get() + /*conn, err := rs.db.Get() if err != nil { return err } @@ -617,7 +617,7 @@ func (rs *RedisStorage) RemoveDestination(destID string) (err error) { if historyScribe != nil { response := 0 go historyScribe.Call("HistoryV1.Record", dest.GetHistoryRecord(true), &response) - } + }*/ return }