func loadPbBuffer(config *bwmf.Config, path string) (*pb.MatrixShard, error) { client, err := bwmf.GetFsClient(config) if err != nil { return nil, fmt.Errorf("Failed getting filesystem.Client: %s", err) } return bwmf.LoadMatrixShard(client, path) }
func saveResult(shard *pb.MatrixShard, config *bwmf.Config, path string) error { client, err := bwmf.GetFsClient(config) if err != nil { return fmt.Errorf("Failed getting filesystem.Client: %s", err) } return bwmf.SaveMatrixShard(client, shard, path) }