diff options
| author | Jeff Carr <[email protected]> | 2025-01-09 15:56:03 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-01-09 15:56:03 -0600 |
| commit | fe98085712189edea536d9207b40f8b0daf826ef (patch) | |
| tree | 9fa2795fde73019939e2e9ea85a729415d145538 | |
| parent | 65aa8e85b1b751a224d7486a721188582c34bb76 (diff) | |
locking seems to work in or out of the .proto file
| -rw-r--r-- | example/Makefile | 3 | ||||
| -rw-r--r-- | sort.go | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/example/Makefile b/example/Makefile index 13c5919..a489ec4 100644 --- a/example/Makefile +++ b/example/Makefile @@ -8,11 +8,10 @@ vet: @GO111MODULE=off go vet build: - rm -f fruit.newsort.pb.go GO111MODULE=off go build auto: - ../autogenpb --proto fruit.proto --package main + ../autogenpb --proto fruit.proto --package main --mutex goimports: goimports -w *.go @@ -191,7 +191,7 @@ func (pf *File) appendUnique(w io.Writer, blah *MsgName, names map[string]string var LOCK string = pf.Bases.Lockname if argv.Mutex { - LOCK = pf.Bases.Name + ".Lock" + LOCK = pf.Bases.Lockname } else { LOCK = "all.Lock" } |
