X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=cmd%2Fsafcm%2Fsync_sync.go;h=eeb387095d59999dc6da2eaff1118ccd6d7581c2;hb=4206e0dbca82f5df7d8e534f78cb737979880916;hp=bc11043299e77152483fac038fa59d3b829b301a;hpb=5bbdbf913be3152f60d556e4b20e1ddb2d66d0c0;p=safcm%2Fsafcm.git diff --git a/cmd/safcm/sync_sync.go b/cmd/safcm/sync_sync.go index bc11043..eeb3870 100644 --- a/cmd/safcm/sync_sync.go +++ b/cmd/safcm/sync_sync.go @@ -1,6 +1,6 @@ // "sync" sub-command: sync files -// Copyright (C) 2021 Simon Ruderich +// Copyright (C) 2021-2022 Simon Ruderich // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by @@ -35,14 +35,10 @@ func (s *Sync) hostSync(conn *rpc.Conn, detectedGroups []string) error { if err != nil { return err } - x, err := s.loop.SendRecv(s, conn, req) + resp, err := s.loop.HostSyncMsg(s, conn, req) if err != nil { return err } - resp, ok := x.(safcm.MsgSyncResp) - if !ok { - return fmt.Errorf("unexpected response %v", x) - } // Display changes c := frontend.Changes{