Esempio n. 1
0
func (top *Topology) GetActionWithSeqObject(seq int64, act *models.Action) error {
	var err error
	for {
		err = models.GetActionObject(top.zkConn, top.ProductName, seq, act, top.provider)
		if err == nil || top.IsFatalErr(err) {
			break
		} else {
			time.Sleep(ZK_RECONNECT_INTERVAL * time.Second)
		}
		if err != nil {
			log.ErrorErrorf(err, " GetActionWithSeqObject ")
		}
	}
	return err
}
Esempio n. 2
0
func (top *Topology) GetActionWithSeqObject(seq int64, act *models.Action) error {
	return models.GetActionObject(top.zkConn, top.ProductName, seq, act, top.provider)
}