Skip to content

Commit 1b5e66f

Browse files
author
wout
committed
Add sleep before each REST call to Constellix to prevent rate limit
1 parent 74fdf64 commit 1b5e66f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

dnsapi/dns_constellix.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,9 @@ _constellix_rest() {
156156
data="$3"
157157
_debug "$ep"
158158

159+
# Prevent rate limit
160+
_sleep 2
161+
159162
rdate=$(date +"%s")"000"
160163
hmac=$(printf "%s" "$rdate" | _hmac sha1 "$(printf "%s" "$CONSTELLIX_Secret" | _hex_dump | tr -d ' ')" | _base64)
161164

0 commit comments

Comments
 (0)