mirror of
https://github.com/docker/compose.git
synced 2026-10-09 05:25:33 +00:00
deps: Update Go modules, remove duplicate
Signed-off-by: Chris Crone <christopher.crone@docker.com>
This commit is contained in:
parent
7a740aebf5
commit
03e95839c8
4 changed files with 46 additions and 41 deletions
|
|
@ -17,7 +17,7 @@
|
|||
package proxy
|
||||
|
||||
import (
|
||||
"github.com/google/uuid"
|
||||
"github.com/hashicorp/go-uuid"
|
||||
"github.com/sirupsen/logrus"
|
||||
"google.golang.org/grpc/metadata"
|
||||
|
||||
|
|
@ -28,8 +28,11 @@ import (
|
|||
func (p *proxy) NewStream(stream streamsv1.Streaming_NewStreamServer) error {
|
||||
var (
|
||||
ctx = stream.Context()
|
||||
id = uuid.New().String()
|
||||
)
|
||||
id, err := uuid.GenerateUUID()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
md := metadata.New(map[string]string{
|
||||
"id": id,
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue