Skip to content

Commit

Permalink
update yaegi version
Browse files Browse the repository at this point in the history
  • Loading branch information
Bai-Yingjie committed Nov 10, 2021
1 parent 9771e98 commit 93d0b87
Show file tree
Hide file tree
Showing 56 changed files with 699 additions and 1,958 deletions.
6 changes: 4 additions & 2 deletions cmd/extract/extract.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ func extractCmd() error {
flag.StringVar(&name, "name", "", "the namespace for the extracted symbols")
flag.StringVar(&exclude, "exclude", "", "comma separated list of regexp matching symbols to exclude")
flag.StringVar(&include, "include", "", "comma separated list of regexp matching symbols to include")
flag.StringVar(&tag, "tag", "", "build tag to be added to the created package")
flag.StringVar(&tag, "tag", "", "comma separated list of build tags to be added to the created package")

flag.Parse()

Expand All @@ -50,7 +50,9 @@ func extractCmd() error {
ext := extract.Extractor{
Dest: name,
License: license,
Tag: tag,
}
if tag != "" {
ext.Tag = strings.Split(tag, ",")
}

if exclude != "" {
Expand Down
2 changes: 1 addition & 1 deletion docs/adaptiveservice.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ func init() {

- `GetObservedIP{}` is a known message to service "IPObserver".
- When client calls `conn.SendRecv(as.GetObservedIP{}, &ip)`, the request message is then
delivered to the server's mesage queue waitting one "idle" worker from worker pool to pick
delivered to the server's message queue waitting one "idle" worker from worker pool to pick
up the message and call the handler `GetObservedIP.Handle()`.
- Many clients can send the request simultaneously and the handlers will be called also
in parallel on server side.
Expand Down
26 changes: 21 additions & 5 deletions docs/daemon.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,9 @@ Usage of daemon [options]
url of artifacts to update gshell, require -root
```

- use `-bcast` if you want to enable gshell discovery in LAN scope
- use `-registry` if you want to enable gshell discovery in WAN scope
NOTE: in WAN scope, a root registry is required to run, see below
- use `-bcast` if you want to enable gshell discovery in LAN scope.
- use `-registry` if you want to enable gshell discovery in WAN scope.
NOTE: in WAN scope, a root registry is required to run, see below.
- `-root` makes this gshell daemon root registry, only one "public" system can be root.
Public means all the other gshell enabled systems can have IP connectivity to the root.

Expand Down Expand Up @@ -114,6 +114,22 @@ bin/gshell -wd rootregistry -loglevel info daemon -registry 10.10.10.10:11985 -b

## Example: deploy coordinated daemons

Follow the same steps of the root registry, except `gshell daemon` command:

```shell
# in gshell work dir
cd /path/to/gshell

# run gshell daemon
bin/gshell -loglevel info daemon -registry 10.10.10.10:11985 -bcast 9923 &

# or better to test if gshell deamon is already running
bin/gshell info || bin/gshell -loglevel info daemon -registry 10.10.10.10:11985 -bcast 9923 &
```

- registry: specify the root registry IP address
- bcast: LAN broadcast port

## Auto update gshell binary

After started, gshell daemon will always try to update itself automatically,
Expand All @@ -140,7 +156,7 @@ GSHELL_NOUPDATE=1 bin/gshell -loglevel info -wd .working daemon -registry 10.10.

1. service not found: godevsig_gshellDaemon
Start gshell daemon first before any other commands.
1. Start gshell daemon failed with "socket already exists: [/var/tmp/adaptiveservice/builtin_serviceLister.sock]"
1. Start gshell daemon failed with "socket already exists: [/var/tmp/adaptiveservice/builtin_serviceLister.sock]"
There is an old gshell daemon still running. `pkill -SIGINT gshell` to kill the old one, and then start the new one.
1. gshell still failed to start?
1. gshell still failed to start?
Try `rm -rf /var/tmp/adaptiveservice` and then restart gshell daemon.
174 changes: 36 additions & 138 deletions extension/github_com-godevsig-adaptiveservice.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 93d0b87

Please sign in to comment.