logtail: delete ID types and functions (#7412)

These have been moved to the types/logid package.

Signed-off-by: Joe Tsai <joetsai@digital-static.net>
This commit is contained in:
Joe Tsai
2023-03-01 12:18:23 -08:00
committed by GitHub
parent 9cb332f0e2
commit 7e4788e383
3 changed files with 8 additions and 33 deletions
+3 -2
View File
@@ -15,6 +15,7 @@ import (
"time"
"tailscale.com/tstest"
"tailscale.com/types/logid"
)
func TestFastShutdown(t *testing.T) {
@@ -299,7 +300,7 @@ func TestPublicIDUnmarshalText(t *testing.T) {
const hexStr = "6c60a9e0e7af57170bb1347b2d477e4cbc27d4571a4923b21651456f931e3d55"
x := []byte(hexStr)
var id PublicID
var id logid.PublicID
if err := id.UnmarshalText(x); err != nil {
t.Fatal(err)
}
@@ -307,7 +308,7 @@ func TestPublicIDUnmarshalText(t *testing.T) {
t.Errorf("String = %q; want %q", id.String(), hexStr)
}
err := tstest.MinAllocsPerRun(t, 0, func() {
var id PublicID
var id logid.PublicID
if err := id.UnmarshalText(x); err != nil {
t.Fatal(err)
}