Skip to content

Commit 002b6b9

Browse files
committed
don't persist api address to config - we want a volatile file in IPFS_PATH for that
1 parent 66ffe32 commit 002b6b9

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

cmd/ipfs/daemon.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -300,12 +300,6 @@ func daemonFunc(req cmds.Request, res cmds.Response) {
300300
apiMaddr = apiLis.Multiaddr()
301301
fmt.Printf("API server listening on %s\n", apiMaddr)
302302

303-
// TODO: dont persist in config - write to lock file..
304-
if err := node.Repo.SetConfigKey("Addresses.API", apiMaddr.String()); err != nil {
305-
res.SetError(err, cmds.ErrNormal)
306-
return
307-
}
308-
309303
apiGw := corehttp.NewGateway(corehttp.GatewayConfig{
310304
Writable: true,
311305
BlockList: &corehttp.BlockList{

0 commit comments

Comments
 (0)