Last active
February 4, 2020 06:12
-
-
Save ihcsim/947cdc6c676b6e814ebcb0bcf9165034 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| // NewServer initializes and configures a kubelet.Server object to handle HTTP requests. | |
| func NewServer( | |
| // ... | |
| criHandler http.Handler) Server { | |
| // ... | |
| if enableDebuggingHandlers { | |
| server.InstallDebuggingHandlers(criHandler) | |
| if enableContentionProfiling { | |
| goruntime.SetBlockProfileRate(1) | |
| } | |
| } else { | |
| server.InstallDebuggingDisabledHandlers() | |
| } | |
| return server | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment