Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
go-dms3
Commits
ecd6f3b0
Commit
ecd6f3b0
authored
10 years ago
by
Peter Borzov
Committed by
Juan Batiz-Benet
10 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add Updates.Check field to Config
parent
555bc871
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
1 deletion
+10
-1
.gitignore
.gitignore
+2
-0
cmd/ipfs/ipfs.go
cmd/ipfs/ipfs.go
+2
-1
config/config.go
config/config.go
+6
-0
cpu.prof
cpu.prof
+0
-0
No files found.
.gitignore
View file @
ecd6f3b0
cpu.prof # ipfs can generate profiling dump files
*.swp
.ipfsconfig
*.out
...
...
This diff is collapsed.
Click to expand it.
cmd/ipfs/ipfs.go
View file @
ecd6f3b0
...
...
@@ -67,7 +67,8 @@ var log = u.Logger("cmd/ipfs")
func
init
()
{
config
,
err
:=
config
.
PathRoot
()
if
err
!=
nil
{
config
=
""
u
.
POut
(
"Failure initializing the default Config Directory: "
,
err
)
os
.
Exit
(
1
)
}
CmdIpfs
.
Flag
.
String
(
"c"
,
config
,
"specify config directory"
)
}
...
...
This diff is collapsed.
Click to expand it.
config/config.go
View file @
ecd6f3b0
...
...
@@ -45,12 +45,18 @@ func (bp *BootstrapPeer) String() string {
return
bp
.
Address
+
"/"
+
bp
.
PeerID
}
// Updates regulates checking and downloading for application's most recent version
type
Updates
struct
{
Check
string
// "ignore" for do not check, "warn" and "error" for reacting when obsolete
}
// Config is used to load IPFS config files.
type
Config
struct
{
Identity
Identity
// local node's peer identity
Datastore
Datastore
// local node's storage
Addresses
Addresses
// local node's addresses
Mounts
Mounts
// local node's mount points
Updates
Updates
// local node's version management
Bootstrap
[]
*
BootstrapPeer
// local nodes's bootstrap peers
}
...
...
This diff is collapsed.
Click to expand it.
cpu.prof
0 → 100644
View file @
ecd6f3b0
This diff is collapsed.
Click to expand it.
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