Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
neoppod
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Levin Zimmermann
neoppod
Commits
63cd388d
Commit
63cd388d
authored
Feb 19, 2021
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
0919399d
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
7 deletions
+4
-7
go/neo/cmd/neo/main.go
go/neo/cmd/neo/main.go
+1
-1
go/neo/cmd/neo/master.go
go/neo/cmd/neo/master.go
+0
-3
go/neo/cmd/neo/misc.go
go/neo/cmd/neo/misc.go
+1
-1
go/neo/cmd/neo/storage.go
go/neo/cmd/neo/storage.go
+2
-2
No files found.
go/neo/cmd/neo/main.go
View file @
63cd388d
...
...
@@ -31,7 +31,7 @@ var commands = prog.CommandRegistry{
}
var
helpTopics
=
prog
.
HelpRegistry
{
//
XXX for now empty
//
empty for now
}
func
main
()
{
...
...
go/neo/cmd/neo/master.go
View file @
63cd388d
...
...
@@ -35,9 +35,6 @@ import (
const
masterSummary
=
"run master node"
// TODO options:
// masterv ...
func
masterUsage
(
w
io
.
Writer
)
{
fmt
.
Fprintf
(
w
,
`Usage: neo master [options]
...
...
go/neo/cmd/neo/misc.go
View file @
63cd388d
...
...
@@ -157,7 +157,7 @@ func listenAndServe(ctx context.Context, net xnet.Networker, laddr string, serve
return
wg
.
Wait
()
}
// noErrCloser turns `Close()` -> `Close() err` that alwa
s
ys returns nil.
// noErrCloser turns `Close()` -> `Close() err` that always returns nil.
type
noErrCloser
struct
{
c
interface
{
Close
()
}
}
...
...
go/neo/cmd/neo/storage.go
View file @
63cd388d
...
...
@@ -95,9 +95,9 @@ func storageMain(argv []string) {
// https://groups.google.com/forum/#!msg/golang-nuts/jPb_h3TvlKE/rQwbg-etCAAJ
// https://github.com/golang/go/issues/6817
//
//
XXX
check how varying this affects performance
//
TODO
check how varying this affects performance
//
// NOTE should be not needed once, hopefuly, Go runtime uses io_uring for IO
// NOTE should be not needed once, hopeful
l
y, Go runtime uses io_uring for IO
// https://github.com/golang/go/issues/31908
maxprocs
:=
runtime
.
GOMAXPROCS
(
0
)
runtime
.
GOMAXPROCS
(
maxprocs
*
8
)
// XXX *8 is enough?
...
...
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