Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
neo
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Kirill Smelkov
neo
Commits
df579315
Commit
df579315
authored
Jan 18, 2021
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
f615b0e2
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
6 deletions
+9
-6
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
+2
-2
go/neo/cmd/neo/storage.go
go/neo/cmd/neo/storage.go
+6
-3
No files found.
go/neo/cmd/neo/main.go
View file @
df579315
// Copyright (C) 2017-20
18
Nexedi SA and Contributors.
// Copyright (C) 2017-20
21
Nexedi SA and Contributors.
// Kirill Smelkov <kirr@nexedi.com>
//
// This program is free software: you can Use, Study, Modify and Redistribute
...
...
go/neo/cmd/neo/master.go
View file @
df579315
// Copyright (C) 2017-202
0
Nexedi SA and Contributors.
// Copyright (C) 2017-202
1
Nexedi SA and Contributors.
// Kirill Smelkov <kirr@nexedi.com>
//
// This program is free software: you can Use, Study, Modify and Redistribute
...
...
@@ -46,7 +46,7 @@ Run NEO master node.
func
masterMain
(
argv
[]
string
)
{
flags
:=
flag
.
NewFlagSet
(
""
,
flag
.
ExitOnError
)
flags
.
Usage
=
func
()
{
masterUsage
(
os
.
Stderr
);
flags
.
PrintDefaults
()
}
// XXX prettify
flags
.
Usage
=
func
()
{
masterUsage
(
os
.
Stderr
);
flags
.
PrintDefaults
()
}
netSetup
:=
netFlags
(
flags
)
cluster
:=
flags
.
String
(
"cluster"
,
""
,
"cluster name"
)
// XXX masters here too?
...
...
go/neo/cmd/neo/storage.go
View file @
df579315
// Copyright (C) 2016-202
0
Nexedi SA and Contributors.
// Copyright (C) 2016-202
1
Nexedi SA and Contributors.
// Kirill Smelkov <kirr@nexedi.com>
//
// This program is free software: you can Use, Study, Modify and Redistribute
...
...
@@ -63,7 +63,7 @@ XXX currently storage is read-only.
func
storageMain
(
argv
[]
string
)
{
flags
:=
flag
.
NewFlagSet
(
""
,
flag
.
ExitOnError
)
flags
.
Usage
=
func
()
{
storageUsage
(
os
.
Stderr
);
flags
.
PrintDefaults
()
}
// XXX prettify
flags
.
Usage
=
func
()
{
storageUsage
(
os
.
Stderr
);
flags
.
PrintDefaults
()
}
netSetup
:=
netFlags
(
flags
)
cluster
:=
flags
.
String
(
"cluster"
,
""
,
"the cluster name"
)
masters
:=
flags
.
String
(
"masters"
,
""
,
"list of masters"
)
...
...
@@ -95,6 +95,9 @@ func storageMain(argv []string) {
// https://github.com/golang/go/issues/6817
//
// XXX check how varying this affects performance
//
// NOTE should be not needed once, hopefuly, 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?
...
...
@@ -116,7 +119,7 @@ func storageMain(argv []string) {
return
stor
.
Run
(
ctx
,
l
)
})
// XXX back.Close
// XXX back.Close
here or in Storage?
if
err
!=
nil
{
prog
.
Fatal
(
err
)
...
...
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