where is the StorageMgr be inited? #6054
Replies: 2 comments 1 reply
-
I saw this question is asked before. do you need further help. maybe you can ask in slack channel |
Beta Was this translation helpful? Give feedback.
0 replies
-
@EysaDun Do you need further help with this? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am a chinese developer, and i'm sorry for my week English.
Here has a question block me:
func (sm *StorageMinerAPI) WorkerConnect(ctx context.Context, url string) error {
w, err := connectRemoteWorker(ctx, sm, url)
if err != nil {
return xerrors.Errorf("connecting remote storage failed: %w", err)
}
}
this code is Worker register to miner, i dont understand where StorageMgr init in line: sm.StorageMgr.AddWorker(ctx, w).
WorkerConnect func is called by nodeApi, nodeApi has no StorageMgr.
which nice man could answer me, thank you very much!
Beta Was this translation helpful? Give feedback.
All reactions