func (w *Worker) ClientAfterUncooperativeClose(job *data.Job) error {
	logger := w.logger.Add("method", "ClientAfterUncooperativeClose",
		"job", job)
	ch, err := w.relatedChannel(logger, job, data.JobClientAfterUncooperativeClose)
	if err != nil {
		return err
	}

	logger = logger.Add("channel", ch)

	ch.ChannelStatus = data.ChannelClosedUncoop
	if err := w.saveRecord(logger, w.db.Querier, ch); err != nil {
		return err
	}

	client, err := w.account(logger, ch.Client)
	if err != nil {
		return err
	}

	return w.addJob(logger, nil,
		data.JobAccountUpdateBalances, data.JobAccount, client.ID)
}
func (w *Worker) ClientAfterUncooperativeClose(job *data.Job) error {
	logger := w.logger.Add("method", "ClientAfterUncooperativeClose",
		"job", job)
	ch, err := w.relatedChannel(logger, job, data.JobClientAfterUncooperativeClose)
	if err != nil {
		return err
	}

	logger = logger.Add("channel", ch)

	ch.ChannelStatus = data.ChannelClosedUncoop
	if err := w.saveRecord(logger, w.db.Querier, ch); err != nil {
		return err
	}

	client, err := w.account(logger, ch.Client)
	if err != nil {
		return err
	}

	return w.addJob(logger, nil,
		data.JobAccountUpdateBalances, data.JobAccount, client.ID)
}
func ( w * Worker ) ClientAfterUncooperativeClose ( job * data . Job ) error { logger := w . logger . Add ( " " , " " , " " , job ) ch , err := w . relatedChannel ( logger , job , data . JobClientAfterUncooperativeClose ) if err != nil { return err } logger = logger . Add ( " " , ch ) ch . ChannelStatus = data . ChannelClosedUncoop if err := w . saveRecord ( logger , w . db . Querier , ch ) ; err != nil { return err } client , err := w . account ( logger , ch . Client ) if err != nil { return err } return w . addJob ( logger , nil , data . JobAccountUpdateBalances , data . JobAccount , client . ID ) }
// ClientAfterUncooperativeClose changed channel status
// to closed uncooperative.
ClientAfterUncooperativeClose changed channel status to closed uncooperative .