合テスト用

dc380e62 :Anonymous 2015-12-16 15:11
@markdown
>>bf1a8424
直っているのを確認しました! 今度はきちんと動作しています。大変お疲れ様でした。

```go hl_lines="15"
//GetData gets records from node n and checks its is same as stamp and id in args.
//save recs if success. returns errSpam or errGet.
func (r *Record) GetData(n *node.Node) error {
res, err := n.Talk(fmt.Sprintf("/get/%s/%d/%s", r.Datfile, r.Stamp, r.ID), false, nil)
if len(res) == 0 {
err = errors.New("no response")
}
if err != nil {
log.Println(err)
return errGet
}
if err = r.parse(res[0]); err != nil {
return errGet
}
r.Sync()
return r.checkData(-1, -1)
}
```
https://github.com/shingetsu-gou/shingetsu-gou/blob/b241e2136863c69e7a51895dc94184a1b7b2d3bd/thread/record.go
Powered by shinGETsu.