1. Fix wrong atomic pkg from go1.19 std sync/atomic to go.uber.org/atomic (#1479)

2. Fix CI buildtest config '>=1.18' to '1.18',ensure compatibility with go1.18
This commit is contained in:
imcdd
2023-03-08 15:27:26 +08:00
committed by GitHub
parent 11ae7fdbb6
commit 1f4fd6aafe
4 changed files with 4 additions and 4 deletions

View File

@@ -21,7 +21,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: '>=1.18'
go-version: '1.18'
- name: Set up gotestfmt
run: go install github.com/gotesttools/gotestfmt/v2/cmd/gotestfmt@v2.4.1

View File

@@ -246,7 +246,7 @@ Read our [deployment docs](https://docs.livekit.io/deploy/) for more information
Pre-requisites:
- Go 1.16+ is installed
- Go 1.18+ is installed
- GOPATH/bin is in your PATH
Then run

View File

@@ -19,10 +19,10 @@ package rtc
import (
"context"
"sync"
"sync/atomic"
"time"
"github.com/pion/webrtc/v3/pkg/rtcerr"
"go.uber.org/atomic"
"github.com/livekit/livekit-server/pkg/rtc/types"
"github.com/livekit/livekit-server/pkg/sfu"

View File

@@ -18,11 +18,11 @@ package rtc
import (
"sync"
"sync/atomic"
"testing"
"time"
"github.com/stretchr/testify/require"
"go.uber.org/atomic"
"github.com/livekit/livekit-server/pkg/rtc/types"
"github.com/livekit/livekit-server/pkg/rtc/types/typesfakes"