Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

set.NEW() non enough arguements #3

Open
Asay-dev opened this issue Apr 5, 2021 · 0 comments
Open

set.NEW() non enough arguements #3

Asay-dev opened this issue Apr 5, 2021 · 0 comments

Comments

@Asay-dev
Copy link

Asay-dev commented Apr 5, 2021

// stratum.go : 44
func New() *StratumContext {
	sc := &StratumContext{}
	sc.KeepAliveDuration = KeepAliveDuration
	sc.workListeners = set.New()          //这里缺少一个 settype 类型的参数
	sc.submitListeners = set.New()       //这里缺少一个 settype 类型的参数
	sc.responseListeners = set.New()       //这里缺少一个 settype 类型的参数
	sc.submittedWorkRequestIds = set.New()       //这里缺少一个 settype 类型的参数
	sc.stopChan = make(chan struct{})
	return sc
}

我们应该在使用前先把包下载到本地,修改后再用go mod init 载入本地的包. 直接载入github包会报错.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant