all: replace logtail.{Public,Private}ID with logid.{Public,Private}ID (#7404)
The log ID types were moved to a separate package so that code that only depend on log ID types do not need to link in the logic for the logtail client itself. Not all code need the logtail client. Signed-off-by: Joe Tsai <joetsai@digital-static.net>
This commit is contained in:
@ -12,6 +12,7 @@ import (
|
||||
"os"
|
||||
|
||||
"tailscale.com/logtail"
|
||||
"tailscale.com/types/logid"
|
||||
)
|
||||
|
||||
func main() {
|
||||
@ -25,7 +26,7 @@ func main() {
|
||||
|
||||
log.SetFlags(0)
|
||||
|
||||
var id logtail.PrivateID
|
||||
var id logid.PrivateID
|
||||
if err := id.UnmarshalText([]byte(*privateID)); err != nil {
|
||||
log.Fatalf("logtail: bad -privateid: %v", err)
|
||||
}
|
||||
|
Reference in New Issue
Block a user