wormhole-explorer/fly/internal/track/trackid.go

14 lines
249 B
Go
Raw Normal View History

package track
import (
"fmt"
"github.com/google/uuid"
)
// GetTrackID returns a unique track id for the pipeline.
func GetTrackID(vaaID string) string {
uuid := uuid.New()
return fmt.Sprintf("gossip-signed-vaa-%s-%s", vaaID, uuid.String())
}