fixed span stress

This commit is contained in:
Radu Ioan Fericean
2013-10-06 11:39:07 +03:00
parent 76d7e02402
commit 483a13f983

View File

@@ -21,6 +21,7 @@ package main
import (
"flag"
"github.com/cgrates/cgrates/engine"
"github.com/cgrates/cgrates/utils"
"log"
"os"
"runtime"
@@ -60,8 +61,11 @@ func main() {
//cd := engine.CallDescriptor{Direction: "*out", TOR: "0", Tenant: "vdf", Subject: "rif", Destination: "0256", TimeStart: t1, TimeEnd: t2}
cd := engine.CallDescriptor{Direction: "*out", TOR: "call", Tenant: "cgrates.org", Subject: "1001", Destination: "+49", TimeStart: t1, TimeEnd: t2}
getter, err := engine.NewRedisStorage("localhost:6379", 10, "")
getter, err := engine.ConfigureDataStorage(utils.REDIS, "localhost", "6379", "", "", "")
//getter, err := engine.NewMongoStorage("localhost", "cgrates")
if err != nil {
log.Fatal("Could not connect to data store: ", err)
}
defer getter.Close()
engine.SetDataStorage(getter)