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
cd650fa0
Commit
cd650fa0
authored
5 years ago
by
Cecylia Bocovich
Browse files
Options
Downloads
Patches
Plain Diff
Keyed composite literal to avoid go vet warning
parent
254e6b9a
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
client/lib/rendezvous.go
+1
-1
1 addition, 1 deletion
client/lib/rendezvous.go
proxy-go/snowflake.go
+1
-1
1 addition, 1 deletion
proxy-go/snowflake.go
with
2 additions
and
2 deletions
client/lib/rendezvous.go
+
1
−
1
View file @
cd650fa0
...
...
@@ -67,7 +67,7 @@ func NewBrokerChannel(broker string, front string, transport http.RoundTripper)
}
func
limitedRead
(
r
io
.
Reader
,
limit
int64
)
([]
byte
,
error
)
{
p
,
err
:=
ioutil
.
ReadAll
(
&
io
.
LimitedReader
{
r
,
limit
+
1
})
p
,
err
:=
ioutil
.
ReadAll
(
&
io
.
LimitedReader
{
R
:
r
,
N
:
limit
+
1
})
if
err
!=
nil
{
return
p
,
err
}
else
if
int64
(
len
(
p
))
==
limit
+
1
{
...
...
This diff is collapsed.
Click to expand it.
proxy-go/snowflake.go
+
1
−
1
View file @
cd650fa0
...
...
@@ -140,7 +140,7 @@ func genSessionID() string {
}
func
limitedRead
(
r
io
.
Reader
,
limit
int64
)
([]
byte
,
error
)
{
p
,
err
:=
ioutil
.
ReadAll
(
&
io
.
LimitedReader
{
r
,
limit
+
1
})
p
,
err
:=
ioutil
.
ReadAll
(
&
io
.
LimitedReader
{
R
:
r
,
N
:
limit
+
1
})
if
err
!=
nil
{
return
p
,
err
}
else
if
int64
(
len
(
p
))
==
limit
+
1
{
...
...
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