add check_rate_limit decorator

add check_rate_limit decorator
Merge branch 'dev'