// unacknowledgedUpdates is a functional option that sets the value of the UnacknowledgedUpdates
// field of a Subscribe call.
unacknowledgedUpdates is a functional option that sets the value of the UnacknowledgedUpdates
field of a Subscribe call.
// unacknowledgedUpdates is a functional option that sets the value of the UnacknowledgedUpdates // field of a Subscribe call .
func unacknowledgedUpdates(state *internalState) executor.CallOpt {
	return func(call *executor.Call) {
		if n := len(state.unackedUpdates); n > 0 {
			unackedUpdates := make([]executor.Call_Update, 0, n)
			for k := range state.unackedUpdates {
				unackedUpdates = append(unackedUpdates, state.unackedUpdates[k])
			}
			call.Subscribe.UnacknowledgedUpdates = unackedUpdates
		} else {
			call.Subscribe.UnacknowledgedUpdates = nil
		}
	}
}
func unacknowledgedUpdates ( state * internalState ) executor . CallOpt { return func ( call * executor . Call ) { if n := len ( state . unackedUpdates ) ; n > 0 { unackedUpdates := make ( [ ] executor . Call_Update , 0 , n ) for k := range state . unackedUpdates { unackedUpdates = append ( unackedUpdates , state . unackedUpdates [ k ] ) } call . Subscribe . UnacknowledgedUpdates = unackedUpdates } else { call . Subscribe . UnacknowledgedUpdates = nil } } }
unacknowledgedUpdates is a functional option that sets the value of the UnacknowledgedUpdates
field of a Subscribe call.
unacknowledgedUpdates is a functional option that sets the value of the UnacknowledgedUpdates field of a Subscribe call .