File tree Expand file tree Collapse file tree 1 file changed +18
-20
lines changed Expand file tree Collapse file tree 1 file changed +18
-20
lines changed Original file line number Diff line number Diff line change @@ -20,26 +20,24 @@ func main() {
20
20
for result , err := range client .IterGet (
21
21
"/leaksdb/v2/sources" , nil ,
22
22
) {
23
- func (result * flareio.IterResult , err error ) {
24
- // Rate Limiting
25
- time .Sleep (time .Second * 1 )
26
-
27
- if err != nil {
28
- fmt .Printf ("unexpected error: %s\n " , err )
29
- os .Exit (1 )
30
- }
31
-
32
- // Handle the response...
33
- defer result .Response .Body .Close ()
34
-
35
- // Print the status
36
- fetchedPages = fetchedPages + 1
37
- fmt .Printf (
38
- "Fetched %d page(s) of LeaksDB Sources, next=%s\n " ,
39
- fetchedPages ,
40
- result .Next ,
41
- )
42
- }(result , err )
23
+ // Rate Limiting
24
+ time .Sleep (time .Second * 1 )
25
+
26
+ if err != nil {
27
+ fmt .Printf ("unexpected error: %s\n " , err )
28
+ os .Exit (1 )
29
+ }
30
+
31
+ // Handle the response...
32
+ result .Response .Body .Close ()
33
+
34
+ // Print the status
35
+ fetchedPages = fetchedPages + 1
36
+ fmt .Printf (
37
+ "Fetched %d page(s) of LeaksDB Sources, next=%s\n " ,
38
+ fetchedPages ,
39
+ result .Next ,
40
+ )
43
41
}
44
42
45
43
}
You can’t perform that action at this time.
0 commit comments