This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
import lxml.html | |
from lxml.cssselect import CSSSelector | |
import re | |
import requests | |
def check_url(url): | |
try: | |
return requests.head(url, timeout=1).status_code == 200 | |
except: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Copyright (c) The Thanos Authors. | |
// Licensed under the Apache License 2.0. | |
package extgrpc | |
import ( | |
"context" | |
"fmt" | |
"sync" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/pkg/store/proxy_heap.go b/pkg/store/proxy_heap.go | |
index d354d4db..5161930b 100644 | |
--- a/pkg/store/proxy_heap.go | |
+++ b/pkg/store/proxy_heap.go | |
@@ -9,6 +9,7 @@ import ( | |
"fmt" | |
"io" | |
"sort" | |
+ "strings" | |
"sync" |