started rpc delegate

This commit is contained in:
Radu Ioan Fericean
2012-05-22 18:56:02 +03:00
parent a1805c509e
commit 00cc51b5e4
2 changed files with 44 additions and 4 deletions

View File

@@ -74,6 +74,8 @@ func main() {
}
for record, err := csvReader.Read(); err == nil; record, err = csvReader.Read() {
uuid := record[10]
t, _ := time.Parse("2012-05-21 17:48:20", record[5])
fmt.Println(t)
if useDB {
cc, timespansText, err := readDbRecord(db, uuid)
if err != nil && useRPC {
@@ -92,7 +94,8 @@ func main() {
TimeEnd: t2}
client.Call("Responder.GetCost", cd, cc)
}
log.Print(cc, timespansText)
_ = timespansText
//log.Print(cc, timespansText)
}
}
}