Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
Geth-Modification
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张蕾
Geth-Modification
Commits
dd8a6268
Unverified
Commit
dd8a6268
authored
Oct 30, 2017
by
Péter Szilágyi
Committed by
GitHub
Oct 30, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #15398 from ferhatelmas/core-swarm-typo
core, swarm: typo fixes
parents
8d434f6a
07e8c177
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
5 deletions
+5
-5
tx_journal.go
core/tx_journal.go
+1
-1
error.go
swarm/api/http/error.go
+1
-1
error_test.go
swarm/api/http/error_test.go
+1
-1
pyramid.go
swarm/storage/pyramid.go
+2
-2
No files found.
core/tx_journal.go
View file @
dd8a6268
...
...
@@ -68,7 +68,7 @@ func (journal *txJournal) load(add func(*types.Transaction) error) error {
}
defer
input
.
Close
()
// Temporaril
l
y discard any journal additions (don't double add on load)
// Temporarily discard any journal additions (don't double add on load)
journal
.
writer
=
new
(
devNull
)
defer
func
()
{
journal
.
writer
=
nil
}()
...
...
swarm/api/http/error.go
View file @
dd8a6268
...
...
@@ -72,7 +72,7 @@ func initErrHandling() {
//ShowMultipeChoices is used when a user requests a resource in a manifest which results
//in ambiguous results. It returns a HTML page with clickable links of each of the entry
//in the manifest which fits the request URI ambiguity.
//For example, if the user requests bzz:/<hash>/read and that manifest contain
e
s entries
//For example, if the user requests bzz:/<hash>/read and that manifest contains entries
//"readme.md" and "readinglist.txt", a HTML page is returned with this two links.
//This only applies if the manifest has no default entry
func
ShowMultipleChoices
(
w
http
.
ResponseWriter
,
r
*
http
.
Request
,
list
api
.
ManifestList
)
{
...
...
swarm/api/http/error_test.go
View file @
dd8a6268
...
...
@@ -132,7 +132,7 @@ func TestJsonResponse(t *testing.T) {
}
if
!
isJSON
(
string
(
respbody
))
{
t
.
Fatalf
(
"Expected re
ps
onse to be JSON, received invalid JSON: %s"
,
string
(
respbody
))
t
.
Fatalf
(
"Expected re
sp
onse to be JSON, received invalid JSON: %s"
,
string
(
respbody
))
}
}
...
...
swarm/storage/pyramid.go
View file @
dd8a6268
...
...
@@ -27,7 +27,7 @@ import (
/*
The main idea of a pyramid chunker is to process the input data without knowing the entire size apriori.
For this to be achieved, the chunker tree is built from the ground up until the data is exhausted.
This opens up new aveneus such as easy append and other sort of modifications to the tree therby avoiding
This opens up new aveneus such as easy append and other sort of modifications to the tree ther
e
by avoiding
duplication of data chunks.
...
...
@@ -451,7 +451,7 @@ func (self *PyramidChunker) prepareChunks(isAppend bool, chunkLevel [][]*TreeEnt
}
}
// Data ended in chunk boundry.. just signal to start bulding tree
// Data ended in chunk bound
a
ry.. just signal to start bulding tree
if
n
==
0
{
self
.
buildTree
(
isAppend
,
chunkLevel
,
parent
,
chunkWG
,
jobC
,
quitC
,
true
,
rootKey
)
break
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment