In testing TokenBucketv2 by sending curl requests from a single machine i found using r.remoteAddr as UID gave a different value everytime as a new port was assigned for each http request. The throttle therefore was not envoked.
To test i truncated r.remote Addr to just IP by removing port:
import strings
replacing r.remoteAddr in the call to throttled with strings.Split(r.RemoteAddr, ":")[0]