1
0
mirror of https://github.com/minio/mc.git synced 2025-11-13 12:22:45 +03:00

Fix sync bug when in TypeA and TypeB sync style source doesn't exist

This commit is contained in:
Harshavardhana
2015-06-22 15:56:58 -07:00
parent 4b88ad7786
commit 9b901bac21
4 changed files with 46 additions and 2 deletions

View File

@@ -74,6 +74,7 @@ func (i InfoMessage) String() string {
return i.Message
}
// CopyMessage container for file copy messages
type CopyMessage struct {
Message string `json:"message"`
Source string `json:"source"`
@@ -83,3 +84,10 @@ type CopyMessage struct {
func (c CopyMessage) String() string {
return fmt.Sprintf("%s -> %s", c.Source, c.Target)
}
// SyncMessage container for file sync messages, inherits CopyMessage
type SyncMessage CopyMessage
func (s SyncMessage) String() string {
return fmt.Sprintf("%s -> %s", s.Source, s.Target)
}