Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Snowflake
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
trinity-1686a
Snowflake
Commits
eaa82b8f
Commit
eaa82b8f
authored
7 years ago
by
David Fifield
Browse files
Options
Downloads
Patches
Plain Diff
Move flag code out of init into main.
parent
3f4f5d22
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
broker/broker.go
+2
-5
2 additions, 5 deletions
broker/broker.go
with
2 additions
and
5 deletions
broker/broker.go
+
2
−
5
View file @
eaa82b8f
...
...
@@ -229,9 +229,9 @@ func ipHandler(w http.ResponseWriter, r *http.Request) {
w
.
Write
([]
byte
(
remoteAddr
))
}
var
cert
,
cert_key
,
http_port
,
https_port
string
func
main
()
{
var
cert
,
cert_key
,
http_port
,
https_port
string
func
init
()
{
flag
.
StringVar
(
&
cert
,
"cert"
,
""
,
"TLS certificate file"
)
flag
.
StringVar
(
&
cert_key
,
"key"
,
""
,
"TLS key file"
)
...
...
@@ -250,9 +250,6 @@ func init() {
log
.
Println
(
"Using cert file:"
,
cert
)
log
.
Println
(
"Using cert key file: "
,
cert_key
)
}
func
main
()
{
ctx
:=
NewBrokerContext
()
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment