CARVIEW |
Select Language
HTTP/2 200
date: Sun, 27 Jul 2025 17:41:03 GMT
content-type: text/html; charset=utf-8
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With,Accept-Encoding, Accept, X-Requested-With
x-repository-download: git clone https://github.com/alibaba/sentinel-golang.git
etag: W/"3741f4005260c2691904425f23aefbfb"
cache-control: max-age=0, private, must-revalidate
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-frame-options: deny
x-content-type-options: nosniff
x-xss-protection: 0
referrer-policy: no-referrer-when-downgrade
content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
server: github.com
content-encoding: gzip
accept-ranges: bytes
set-cookie: _gh_sess=vq32VKo7RsrrFioh%2FQIlsSs8GT5lBc9D7aElTfUQszvW6WLhK1dnvjEaG6s%2BCMMRG3qv2nI5x8mOCn3CFb6QtzV3XwTVQv4OgfUMayDwJ8EgInzlvDVckYI%2BwK4rqRYe6lZfSvrjdlVd50y4uxCZXpuD8mtQ6cI5ltoXtvbxYdBtC6gVypmJJdGBZ0t%2Fgsqk0iaFG62tEQaPO3476QbXFj2mfHJoKaNLb24uW%2BkuhpP5Pm7xm%2BLHmABrbD7OYp%2FZewiVMqggo2uZbFBS2guYsQ%3D%3D--BUiQYTstjzKmnShK--TC0ni9Sdmr59zcl%2BGt61kw%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.1530366660.1753638062; Path=/; Domain=github.com; Expires=Mon, 27 Jul 2026 17:41:02 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Mon, 27 Jul 2026 17:41:02 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: DB6E:29FD1F:1065AF9:158139F:688664AE
Polish code of circuit breaker module (#152) · alibaba/sentinel-golang@2c544a8 · GitHub
Copy file name to clipboardExpand all lines: core/circuitbreaker/circuit_breaker.go
Copy file name to clipboardExpand all lines: core/circuitbreaker/circuit_breaker_test.go
Copy file name to clipboardExpand all lines: core/circuitbreaker/rule.go
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 445
Commit 2c544a8
File tree
Expand file treeCollapse file tree
6 files changed
+99
-89
lines changedFilter options
- core/circuitbreaker
- example/circuitbreaker
Expand file treeCollapse file tree
6 files changed
+99
-89
lines changedcore/circuitbreaker/circuit_breaker.go
Copy file name to clipboardExpand all lines: core/circuitbreaker/circuit_breaker.go+36-33Lines changed: 36 additions & 33 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
49 | 49 |
| |
50 | 50 |
| |
51 | 51 |
| |
| 52 | + | |
52 | 53 |
| |
53 | 54 |
| |
54 | 55 |
| |
55 | 56 |
| |
56 | 57 |
| |
| 58 | + | |
57 | 59 |
| |
58 | 60 |
| |
59 | 61 |
| |
| |||
62 | 64 |
| |
63 | 65 |
| |
64 | 66 |
| |
65 |
| - | |
| 67 | + | |
| 68 | + | |
66 | 69 |
| |
67 |
| - | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
68 | 73 |
| |
69 |
| - | |
| 74 | + | |
| 75 | + | |
70 | 76 |
| |
71 | 77 |
| |
72 | 78 |
| |
| 79 | + | |
73 | 80 |
| |
74 |
| - | |
| 81 | + | |
75 | 82 |
| |
76 |
| - | |
| 83 | + | |
77 | 84 |
| |
78 |
| - | |
| 85 | + | |
79 | 86 |
| |
80 |
| - | |
81 |
| - | |
82 |
| - | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
83 | 90 |
| |
84 | 91 |
| |
85 | 92 |
| |
| |||
106 | 113 |
| |
107 | 114 |
| |
108 | 115 |
| |
109 |
| - | |
110 |
| - | |
111 |
| - | |
| 116 | + | |
| 117 | + | |
112 | 118 |
| |
113 | 119 |
| |
114 | 120 |
| |
115 |
| - | |
116 |
| - | |
| 121 | + | |
| 122 | + | |
117 | 123 |
| |
118 | 124 |
| |
119 | 125 |
| |
120 | 126 |
| |
121 | 127 |
| |
122 | 128 |
| |
123 |
| - | |
124 |
| - | |
125 |
| - | |
| 129 | + | |
| 130 | + | |
126 | 131 |
| |
127 | 132 |
| |
128 |
| - | |
129 |
| - | |
| 133 | + | |
| 134 | + | |
130 | 135 |
| |
131 | 136 |
| |
132 | 137 |
| |
133 | 138 |
| |
134 | 139 |
| |
135 | 140 |
| |
136 |
| - | |
137 |
| - | |
138 |
| - | |
| 141 | + | |
| 142 | + | |
139 | 143 |
| |
140 | 144 |
| |
141 | 145 |
| |
142 |
| - | |
143 |
| - | |
| 146 | + | |
| 147 | + | |
144 | 148 |
| |
145 | 149 |
| |
146 | 150 |
| |
147 | 151 |
| |
148 | 152 |
| |
149 | 153 |
| |
150 |
| - | |
151 |
| - | |
152 |
| - | |
| 154 | + | |
| 155 | + | |
153 | 156 |
| |
154 | 157 |
| |
155 |
| - | |
156 |
| - | |
| 158 | + | |
| 159 | + | |
157 | 160 |
| |
158 | 161 |
| |
159 | 162 |
| |
| |||
198 | 201 |
| |
199 | 202 |
| |
200 | 203 |
| |
201 |
| - | |
| 204 | + | |
202 | 205 |
| |
203 | 206 |
| |
204 | 207 |
| |
| |||
212 | 215 |
| |
213 | 216 |
| |
214 | 217 |
| |
215 |
| - | |
| 218 | + | |
216 | 219 |
| |
217 | 220 |
| |
218 | 221 |
| |
| |||
393 | 396 |
| |
394 | 397 |
| |
395 | 398 |
| |
396 |
| - | |
| 399 | + | |
397 | 400 |
| |
398 | 401 |
| |
399 | 402 |
| |
| |||
570 | 573 |
| |
571 | 574 |
| |
572 | 575 |
| |
573 |
| - | |
| 576 | + | |
574 | 577 |
| |
575 | 578 |
| |
576 | 579 |
| |
|
core/circuitbreaker/circuit_breaker_test.go
Copy file name to clipboardExpand all lines: core/circuitbreaker/circuit_breaker_test.go+7-6Lines changed: 7 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
4 | 4 |
| |
5 | 5 |
| |
6 | 6 |
| |
7 |
| - | |
8 |
| - | |
9 |
| - | |
10 | 7 |
| |
| 8 | + | |
11 | 9 |
| |
12 | 10 |
| |
13 | 11 |
| |
| |||
19 | 17 |
| |
20 | 18 |
| |
21 | 19 |
| |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
22 | 25 |
| |
23 | 26 |
| |
24 | 27 |
| |
| |||
29 | 32 |
| |
30 | 33 |
| |
31 | 34 |
| |
32 |
| - | |
33 |
| - | |
34 |
| - | |
| 35 | + | |
35 | 36 |
| |
36 | 37 |
| |
37 | 38 |
| |
|
core/circuitbreaker/rule.go
Copy file name to clipboardExpand all lines: core/circuitbreaker/rule.go+26-21Lines changed: 26 additions & 21 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3 | 3 |
| |
4 | 4 |
| |
5 | 5 |
| |
6 |
| - | |
7 |
| - | |
8 | 6 |
| |
9 | 7 |
| |
10 | 8 |
| |
| 9 | + | |
11 | 10 |
| |
12 | 11 |
| |
13 |
| - | |
14 |
| - | |
| 12 | + | |
| 13 | + | |
15 | 14 |
| |
16 | 15 |
| |
17 | 16 |
| |
18 |
| - | |
| 17 | + | |
19 | 18 |
| |
20 | 19 |
| |
21 | 20 |
| |
22 | 21 |
| |
23 | 22 |
| |
24 | 23 |
| |
25 |
| - | |
26 |
| - | |
| 24 | + | |
| 25 | + | |
27 | 26 |
| |
28 | 27 |
| |
29 | 28 |
| |
| |||
33 | 32 |
| |
34 | 33 |
| |
35 | 34 |
| |
36 |
| - | |
| 35 | + | |
37 | 36 |
| |
38 | 37 |
| |
39 |
| - | |
| 38 | + | |
40 | 39 |
| |
41 |
| - | |
| 40 | + | |
42 | 41 |
| |
43 |
| - | |
| 42 | + | |
44 | 43 |
| |
45 |
| - | |
| 44 | + | |
46 | 45 |
| |
47 |
| - | |
| 46 | + | |
48 | 47 |
| |
49 | 48 |
| |
50 | 49 |
| |
51 |
| - | |
| 50 | + | |
52 | 51 |
| |
53 | 52 |
| |
54 | 53 |
| |
55 | 54 |
| |
56 | 55 |
| |
57 | 56 |
| |
58 |
| - | |
59 |
| - | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
60 | 63 |
| |
61 |
| - | |
| 64 | + | |
62 | 65 |
| |
63 | 66 |
| |
64 | 67 |
| |
| |||
92 | 95 |
| |
93 | 96 |
| |
94 | 97 |
| |
95 |
| - | |
| 98 | + | |
96 | 99 |
| |
97 | 100 |
| |
98 |
| - | |
99 |
| - | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
100 | 105 |
| |
101 | 106 |
| |
102 | 107 |
| |
| |||
105 | 110 |
| |
106 | 111 |
| |
107 | 112 |
| |
108 |
| - | |
| 113 | + | |
109 | 114 |
| |
110 | 115 |
| |
111 | 116 |
| |
|
You can’t perform that action at this time.
0 commit comments