Skip to content

Commit

Permalink
run fieldalignment fix
Browse files Browse the repository at this point in the history
  • Loading branch information
reusee committed Jan 12, 2023
1 parent 3d520e7 commit ed5526b
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion cow_map.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
)

type CowMap[K comparable, V any] struct {
mutex sync.Mutex
value atomic.Pointer[map[K]V]
mutex sync.Mutex
}

func NewCowMap[K comparable, V any]() *CowMap[K, V] {
Expand Down
6 changes: 3 additions & 3 deletions dscope.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ type _Value struct {
}

type _TypeInfo struct {
TypeID _TypeID
DefType reflect.Type
TypeID _TypeID
Position int
DefIsMulti bool
}
Expand All @@ -28,10 +28,10 @@ type _TypeID int

type Scope struct {
reducers map[_TypeID]reflect.Type
signature complex128
forkFuncKey complex128
values *_StackedMap
path *Path
signature complex128
forkFuncKey complex128
}

var Universe = Scope{}
Expand Down
4 changes: 2 additions & 2 deletions fork.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@ import (
)

type _Forker struct {
Signature complex128
Key complex128
Reducers map[_TypeID]reflect.Type
NewValuesTemplate []_Value
DefKinds []reflect.Kind
DefNumValues []int
PosesAtSorted []posAtSorted
ResetIDs []_TypeID
ResetReducers []reducerInfo
Signature complex128
Key complex128
}

type posAtSorted int
Expand Down
8 changes: 4 additions & 4 deletions initializer.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ import (
)

type _Initializer struct {
ID int64
Def any
ReducerKind reducerKind
err error
Values []reflect.Value
done uint32
ID int64
mu sync.Mutex
err error
done uint32
ReducerKind reducerKind
}

type reducerKind uint8
Expand Down
2 changes: 1 addition & 1 deletion stacked_map.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package dscope

type _StackedMap struct {
Values []_Value
Next *_StackedMap
Values []_Value
Height int8
}

Expand Down

0 comments on commit ed5526b

Please sign in to comment.