-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update changelog and fix merge conflicts
- Loading branch information
Showing
76 changed files
with
2,778 additions
and
665 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/cosmovisor |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
package cosmovisor_test | ||
|
||
import ( | ||
"bytes" | ||
"sync" | ||
) | ||
|
||
// buffer is a thread safe bytes buffer | ||
type buffer struct { | ||
b bytes.Buffer | ||
m sync.Mutex | ||
} | ||
|
||
func NewBuffer() *buffer { | ||
return &buffer{} | ||
} | ||
|
||
func (b *buffer) Write(bz []byte) (int, error) { | ||
b.m.Lock() | ||
defer b.m.Unlock() | ||
return b.b.Write(bz) | ||
} | ||
|
||
func (b *buffer) String() string { | ||
b.m.Lock() | ||
defer b.m.Unlock() | ||
return b.b.String() | ||
} | ||
|
||
func (b *buffer) Reset() { | ||
b.m.Lock() | ||
defer b.m.Unlock() | ||
b.b.Reset() | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
module github.com/cosmos/cosmos-sdk/cosmovisor | ||
|
||
go 1.14 | ||
go 1.15 | ||
|
||
require ( | ||
github.com/hashicorp/go-getter v1.4.1 | ||
github.com/otiai10/copy v1.2.0 | ||
github.com/stretchr/testify v1.6.1 | ||
github.com/otiai10/copy v1.4.2 | ||
github.com/stretchr/testify v1.7.0 | ||
) |
Oops, something went wrong.