mirror of
https://github.com/go-micro/go-micro.git
synced 2024-12-18 08:26:38 +02:00
60993e6275
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
19 lines
379 B
Go
19 lines
379 B
Go
package service
|
|
|
|
import (
|
|
"time"
|
|
|
|
"github.com/micro/go-micro/v2/config/source"
|
|
proto "github.com/micro/go-micro/v2/config/source/service/proto"
|
|
)
|
|
|
|
func toChangeSet(c *proto.ChangeSet) *source.ChangeSet {
|
|
return &source.ChangeSet{
|
|
Data: []byte(c.Data),
|
|
Checksum: c.Checksum,
|
|
Format: c.Format,
|
|
Timestamp: time.Unix(c.Timestamp, 0),
|
|
Source: c.Source,
|
|
}
|
|
}
|