这是indexloc提供的服务,不要输入任何密码
Skip to content
This repository was archived by the owner on Feb 13, 2025. It is now read-only.

Conversation

@captncraig
Copy link
Contributor

Uses a single, buffered channel to signal a save is needed. A single worker goroutine monitors this channel and saves as needed.

In the case of multiple saves in fast succession, this should reduce lock contention on the schedule lock.

@gbrayut
Copy link
Contributor

gbrayut commented Jul 22, 2015

code LGTM, but we need to rewrite the x/net/internal/iana package name now that go 1.5 doesn't let you import internal packages. See golang/go@d709434 and travisci failure:

imports bosun.org/_third_party/golang.org/x/net/internal/iana: use of internal package not allowed

captncraig added a commit that referenced this pull request Jul 22, 2015
bosun: making save rely on fewer goroutines needing to acquire the lock.
@captncraig captncraig merged commit 61bb887 into master Jul 22, 2015
@captncraig captncraig deleted the lessSaveContention branch July 22, 2015 19:01
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants