1
0
mirror of https://github.com/go-micro/go-micro.git synced 2025-05-19 21:23:04 +02:00

19 lines
371 B
Go
Raw Normal View History

2020-12-26 15:32:45 +00:00
package grpc
import (
"time"
2021-01-20 21:01:10 +00:00
"github.com/asim/go-micro/v3/config/source"
proto "github.com/asim/go-micro/plugins/config/source/grpc/v3/proto"
2020-12-26 15:32:45 +00:00
)
func toChangeSet(c *proto.ChangeSet) *source.ChangeSet {
return &source.ChangeSet{
Data: c.Data,
Checksum: c.Checksum,
Format: c.Format,
Timestamp: time.Unix(c.Timestamp, 0),
Source: c.Source,
}
}