Merge pull request #1090 from zkry/1089-quiet-stream-output-fix

Add String method so quieted output displays properly
This commit is contained in:
Sebastiaan van Stijn 2018-05-29 12:43:26 +02:00 committed by GitHub
commit daf021fe60
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -122,6 +122,10 @@ func (bw *bufferedWriter) flushBuffer() {
bw.mu.Unlock() bw.mu.Unlock()
} }
func (bw *bufferedWriter) String() string {
return fmt.Sprintf("%s", bw.Writer)
}
func getBuildSharedKey(dir string) (string, error) { func getBuildSharedKey(dir string) (string, error) {
// build session is hash of build dir with node based randomness // build session is hash of build dir with node based randomness
s := sha256.Sum256([]byte(fmt.Sprintf("%s:%s", tryNodeIdentifier(), dir))) s := sha256.Sum256([]byte(fmt.Sprintf("%s:%s", tryNodeIdentifier(), dir)))