diff options
Diffstat (limited to 'plugin/dnstap/msg/msg.go')
-rw-r--r-- | plugin/dnstap/msg/msg.go | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/plugin/dnstap/msg/msg.go b/plugin/dnstap/msg/msg.go index 07930929e..95442301e 100644 --- a/plugin/dnstap/msg/msg.go +++ b/plugin/dnstap/msg/msg.go @@ -5,7 +5,6 @@ import ( "errors" "net" "strconv" - "time" tap "github.com/dnstap/golang-dnstap" "github.com/miekg/dns" @@ -103,16 +102,6 @@ func (d *Data) Pack(m *dns.Msg) error { return nil } -// Epoch returns the epoch time in seconds. -func Epoch() uint64 { - return uint64(time.Now().Unix()) -} - -// Epoch sets the dnstap message epoch. -func (d *Data) Epoch() { - d.TimeSec = Epoch() -} - // ToClientResponse transforms Data into a client response message. func (d *Data) ToClientResponse() *tap.Message { t := tap.Message_CLIENT_RESPONSE |