all: Add a global change list
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/3694
This commit is contained in:
committed by
Audrius Butkevicius
parent
dd7bb6c4b8
commit
0725e3af38
@@ -88,6 +88,9 @@ func (n *DeviceID) MarshalText() ([]byte, error) {
|
||||
}
|
||||
|
||||
func (s ShortID) String() string {
|
||||
if s == 0 {
|
||||
return ""
|
||||
}
|
||||
var bs [8]byte
|
||||
binary.BigEndian.PutUint64(bs[:], uint64(s))
|
||||
return base32.StdEncoding.EncodeToString(bs[:])[:7]
|
||||
|
||||
Reference in New Issue
Block a user