@@ -25,7 +25,6 @@ import (
2525 "storj.io/storj/cmd/storagenode/internalcmd"
2626 "storj.io/storj/private/revocation"
2727 "storj.io/storj/storagenode"
28- "storj.io/storj/storagenode/apikeys"
2928 "storj.io/storj/storagenode/blobstore/filestore"
3029 "storj.io/storj/storagenode/console/consoleserver"
3130 "storj.io/storj/storagenode/operator"
@@ -40,8 +39,6 @@ type StorageNode struct {
4039 Name string
4140 Config storagenode.Config
4241 * storagenode.Peer
43-
44- apiKey apikeys.APIKey
4542}
4643
4744// Label returns name for debugger.
@@ -55,11 +52,6 @@ func (system *StorageNode) NodeURL() storj.NodeURL {
5552 return storj.NodeURL {ID : system .Peer .ID (), Address : system .Peer .Addr ()}
5653}
5754
58- // APIKey returns the API key of the node.
59- func (system * StorageNode ) APIKey () string {
60- return system .apiKey .Secret .String ()
61- }
62-
6355// newStorageNodes initializes storage nodes.
6456func (planet * Planet ) newStorageNodes (ctx context.Context , count int , whitelistedSatellites storj.NodeURLs ) (_ []* StorageNode , err error ) {
6557 defer mon .Task ()(& ctx )(& err )
@@ -284,13 +276,6 @@ func (planet *Planet) newStorageNode(ctx context.Context, prefix string, index,
284276 }
285277 planet .databases = append (planet .databases , db )
286278
287- service := apikeys .NewService (db .APIKeys ())
288-
289- apiKey , err := service .Issue (ctx )
290- if err != nil {
291- return nil , errs .New ("error while trying to issue new api key: %v" , err )
292- }
293-
294279 if config .Pieces .EnableLazyFilewalker {
295280 {
296281 // set up the used space lazyfilewalker filewalker
@@ -319,6 +304,5 @@ func (planet *Planet) newStorageNode(ctx context.Context, prefix string, index,
319304 Name : prefix ,
320305 Config : config ,
321306 Peer : peer ,
322- apiKey : apiKey ,
323307 }, nil
324308}
0 commit comments