anchor.diff:          catch error:badarg ->
               []
           end,
  -    lists:map(
  +    lists:foreach(
           fun(CRepPid) ->
               cancel_couch_replication(XDocId, CRepPid)
           end,
  
positive.code: 
  
  maybe_adjust_all_replications(BucketConfigs) ->
      lists:map(
          fun([XDocId,
               #rep{source = SrcBucket,
                    target = {_, TgtBucket, _, _, _, _, _, _, _, _}},
  
negative.code:                     xdc_rep_utils:remote_vbucketmap_nodelist(TgtBucket),
  
                  % Retry couch replications that failed after they were triggered
                  lists:foreach(
                      fun(FailedCouchRep) ->
                          retry_couch_replication(XDocId, SrcBucket, TgtVbInfo,
                                                  FailedCouchRep)
  