fixes build

This commit is contained in:
Radu Ioan Fericean
2016-05-16 14:08:50 +03:00
parent c9098a3aa3
commit 057a16b152
4 changed files with 11 additions and 3 deletions

View File

@@ -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 {

View File

@@ -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()

View File

@@ -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 {

View File

@@ -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
}