The comment for this pull request suggest you want to prioritize ZAP over ZMTP, but this change does exactly the opposite. Map's Insert method never overwrites map's values.